use of com.thinkbiganalytics.discovery.schema.QueryResultColumn in project kylo by Teradata.
the class DefaultQueryResult method setColumns.
@Override
public void setColumns(List<QueryResultColumn> columns) {
this.columns = columns;
this.columnFieldMap = new HashMap<>();
this.columnDisplayNameMap = new HashMap<>();
if (columns != null) {
int index = 0;
for (QueryResultColumn column : columns) {
column.setIndex(index);
columnFieldMap.put(column.getField(), column);
columnDisplayNameMap.put(column.getDisplayName(), column);
index++;
}
}
}
Aggregations