Interface LocationService
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionforExistingTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table) forNewTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, String schemaName, String tableName) forNewTableAsSelect(SemiTransactionalHiveMetastore metastore, ConnectorSession session, String schemaName, String tableName, Optional<Location> externalLocation) forOptimize(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table) getPartitionWriteInfo(LocationHandle locationHandle, Optional<Partition> partition, String partitionName) Ifpartitionis present, returnsWriteInfofor appending existing partition; otherwise, returnsWriteInfofor writing new partition or overwriting existing partition.getQueryWriteInfo(LocationHandle locationHandle) targetPath and writePath will be root directory of all partition and table paths that may be returned bygetTableWriteInfo(LocationHandle, boolean)andgetPartitionWriteInfo(LocationHandle, Optional, String)method.getTableWriteInfo(LocationHandle locationHandle, boolean overwrite)
-
Method Details
-
forNewTable
Location forNewTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, String schemaName, String tableName) -
forNewTableAsSelect
LocationHandle forNewTableAsSelect(SemiTransactionalHiveMetastore metastore, ConnectorSession session, String schemaName, String tableName, Optional<Location> externalLocation) -
forExistingTable
LocationHandle forExistingTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table) -
forOptimize
LocationHandle forOptimize(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table) -
getQueryWriteInfo
targetPath and writePath will be root directory of all partition and table paths that may be returned bygetTableWriteInfo(LocationHandle, boolean)andgetPartitionWriteInfo(LocationHandle, Optional, String)method. -
getTableWriteInfo
-
getPartitionWriteInfo
LocationService.WriteInfo getPartitionWriteInfo(LocationHandle locationHandle, Optional<Partition> partition, String partitionName) Ifpartitionis present, returnsWriteInfofor appending existing partition; otherwise, returnsWriteInfofor writing new partition or overwriting existing partition.
-