public interface LocationService
| Modifier and Type | Interface and Description |
|---|---|
static class |
LocationService.WriteInfo |
| Modifier and Type | Method and Description |
|---|---|
com.facebook.presto.hive.LocationHandle |
forExistingTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
boolean tempPathRequired) |
com.facebook.presto.hive.LocationHandle |
forNewTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
String schemaName,
String tableName,
boolean tempPathRequired) |
com.facebook.presto.hive.LocationHandle |
forTemporaryTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
boolean tempPathRequired) |
LocationService.WriteInfo |
getPartitionWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle,
Optional<com.facebook.presto.hive.metastore.Partition> partition,
String partitionName)
If
partition is present, returns WriteInfo for appending existing partition;
otherwise, returns WriteInfo for writing new partition or overwriting existing partition. |
LocationService.WriteInfo |
getQueryWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle)
targetPath and writePath will be root directory of all partition and table paths
that may be returned by
getTableWriteInfo(LocationHandle) and getPartitionWriteInfo(LocationHandle, Optional, String) method. |
LocationService.WriteInfo |
getTableWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle) |
com.facebook.presto.hive.LocationHandle forNewTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
String schemaName,
String tableName,
boolean tempPathRequired)
com.facebook.presto.hive.LocationHandle forExistingTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
boolean tempPathRequired)
com.facebook.presto.hive.LocationHandle forTemporaryTable(com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
boolean tempPathRequired)
LocationService.WriteInfo getQueryWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle)
getTableWriteInfo(LocationHandle) and getPartitionWriteInfo(LocationHandle, Optional, String) method.LocationService.WriteInfo getTableWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle)
LocationService.WriteInfo getPartitionWriteInfo(com.facebook.presto.hive.LocationHandle locationHandle, Optional<com.facebook.presto.hive.metastore.Partition> partition, String partitionName)
partition is present, returns WriteInfo for appending existing partition;
otherwise, returns WriteInfo for writing new partition or overwriting existing partition.Copyright © 2012–2023. All rights reserved.