public class HiveLocationService extends Object implements LocationService
LocationService.WriteInfo| Constructor and Description |
|---|
HiveLocationService(HdfsEnvironment hdfsEnvironment) |
@Inject public HiveLocationService(HdfsEnvironment hdfsEnvironment)
public LocationHandle forNewTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, String schemaName, String tableName)
forNewTable in interface LocationServicepublic LocationHandle forExistingTable(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table)
forExistingTable in interface LocationServicepublic LocationService.WriteInfo getQueryWriteInfo(LocationHandle locationHandle)
LocationServiceLocationService.getTableWriteInfo(LocationHandle) and LocationService.getPartitionWriteInfo(LocationHandle, Optional, String) method.getQueryWriteInfo in interface LocationServicepublic LocationService.WriteInfo getTableWriteInfo(LocationHandle locationHandle)
getTableWriteInfo in interface LocationServicepublic LocationService.WriteInfo getPartitionWriteInfo(LocationHandle locationHandle, Optional<Partition> partition, String partitionName)
LocationServicepartition is present, returns WriteInfo for appending existing partition;
otherwise, returns WriteInfo for writing new partition or overwriting existing partition.getPartitionWriteInfo in interface LocationServiceCopyright © 2012–2019. All rights reserved.