use of io.prestosql.spi.connector.ColumnHandle in project carbondata by apache.
the class CarbondataPageSource method getCarbonProjection.
/**
* @param columns
* @return
*/
private CarbonProjection getCarbonProjection(List<? extends ColumnHandle> columns) {
CarbonProjection carbonProjection = new CarbonProjection();
// Convert all columns handles
ImmutableList.Builder<HiveColumnHandle> handles = ImmutableList.builder();
for (ColumnHandle handle : columns) {
handles.add(Types.checkType(handle, HiveColumnHandle.class, "handle"));
carbonProjection.addColumn(((HiveColumnHandle) handle).getName());
}
return carbonProjection;
}
Aggregations