use of com.facebook.presto.raptor.metadata.TableColumn in project presto by prestodb.
the class RaptorMetadata method getColumnHandles.
@Override
public Map<String, ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) {
RaptorTableHandle raptorTableHandle = (RaptorTableHandle) tableHandle;
ImmutableMap.Builder<String, ColumnHandle> builder = ImmutableMap.builder();
for (TableColumn tableColumn : dao.listTableColumns(raptorTableHandle.getTableId())) {
builder.put(tableColumn.getColumnName(), getRaptorColumnHandle(tableColumn));
}
RaptorColumnHandle uuidColumn = shardUuidColumnHandle(connectorId);
builder.put(uuidColumn.getColumnName(), uuidColumn);
RaptorColumnHandle bucketNumberColumn = bucketNumberColumnHandle(connectorId);
builder.put(bucketNumberColumn.getColumnName(), bucketNumberColumn);
return builder.build();
}
Aggregations