use of org.apache.drill.exec.store.pcap.schema.PcapTypes in project drill by axbaretto.
the class PcapRecordReader method initCols.
private ImmutableList<ProjectedColumnInfo> initCols(final Schema schema) {
ImmutableList.Builder<ProjectedColumnInfo> pciBuilder = ImmutableList.builder();
ColumnDto column;
for (int i = 0; i < schema.getNumberOfColumns(); i++) {
column = schema.getColumnByIndex(i);
final String name = column.getColumnName().toLowerCase();
final PcapTypes type = column.getColumnType();
TypeProtos.MinorType minorType = TYPES.get(type);
ProjectedColumnInfo pci = getProjectedColumnInfo(column, name, minorType);
pciBuilder.add(pci);
}
return pciBuilder.build();
}
Aggregations