com.alibaba.druid.pool.ElasticSearchResultSetMetaDataBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-sql Show documentation
Show all versions of elasticsearch-sql Show documentation
Query elasticsearch using SQL
The newest version!
package com.alibaba.druid.pool;
import com.alibaba.druid.util.jdbc.ResultSetMetaDataBase;
import java.util.List;
/**
* Created by allwefantasy on 8/31/16.
*/
public class ElasticSearchResultSetMetaDataBase extends ResultSetMetaDataBase {
public ElasticSearchResultSetMetaDataBase(List headers) {
ColumnMetaData columnMetaData;
for (String column : headers) {
columnMetaData = new ColumnMetaData();
columnMetaData.setColumnLabel(column);
columnMetaData.setColumnName(column);
getColumns().add(columnMetaData);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy