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
package com.alibaba.druid.pool;
import com.alibaba.druid.util.jdbc.ResultSetBase;
import com.alibaba.druid.util.jdbc.ResultSetMetaDataBase;
import java.util.ArrayList;
import java.util.List;
/**
* Created by allwefantasy on 8/31/16.
*/
public class ElasticSearchResultSetMetaDataBase extends ResultSetMetaDataBase {
private final List columns = new ArrayList();
public ElasticSearchResultSetMetaDataBase(List headers) {
for(String column:headers){
ColumnMetaData columnMetaData = new ColumnMetaData();
columnMetaData.setColumnLabel(column);
columnMetaData.setColumnName(column);
columns.add(columnMetaData);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy