Search in sources :

Example 1 with HiveOutputTableHandle

use of io.prestosql.plugin.hive.HiveOutputTableHandle in project hetu-core by openlookeng.

the class CarbondataMetadata method finishCreateTable.

@Override
public Optional<ConnectorOutputMetadata> finishCreateTable(ConnectorSession session, ConnectorOutputTableHandle tableHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics) {
    Optional<ConnectorOutputMetadata> connectorOutputMetadata;
    HiveOutputTableHandle handle = (HiveOutputTableHandle) tableHandle;
    setExternalTable(true);
    Map<String, String> serdeParameters = initSerDeProperties(handle.getTableName());
    connectorOutputMetadata = super.finishCreateTable(session, tableHandle, fragments, computedStatistics, serdeParameters);
    writeSegmentFileAndSetLoadModel();
    return connectorOutputMetadata;
}
Also used : HiveOutputTableHandle(io.prestosql.plugin.hive.HiveOutputTableHandle) ConnectorOutputMetadata(io.prestosql.spi.connector.ConnectorOutputMetadata)

Aggregations

HiveOutputTableHandle (io.prestosql.plugin.hive.HiveOutputTableHandle)1 ConnectorOutputMetadata (io.prestosql.spi.connector.ConnectorOutputMetadata)1