| Package | Description |
|---|---|
| com.facebook.presto.hive | |
| com.facebook.presto.hive.metastore | |
| com.facebook.presto.hive.metastore.file |
| Modifier and Type | Method and Description |
|---|---|
static void |
HiveWriteUtils.checkTableIsWritable(Table table,
boolean writesToNonManagedTablesEnabled) |
LocationHandle |
LocationService.forExistingTable(SemiTransactionalHiveMetastore metastore,
ConnectorSession session,
Table table) |
LocationHandle |
HiveLocationService.forExistingTable(SemiTransactionalHiveMetastore metastore,
ConnectorSession session,
Table table) |
static List<HiveColumnHandle> |
HiveUtil.getPartitionKeyColumnHandles(String connectorId,
Table table) |
static List<HiveColumnHandle> |
HiveUtil.getRegularColumnHandles(String connectorId,
Table table) |
static List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> |
HiveUtil.getTableStructFields(Table table) |
static List<HiveColumnHandle> |
HiveUtil.hiveColumnHandles(String connectorId,
Table table) |
static boolean |
HiveUtil.isPrestoView(Table table) |
| Constructor and Description |
|---|
BackgroundHiveSplitLoader(String connectorId,
Table table,
Iterable<HivePartitionMetadata> partitions,
TupleDomain<? extends ColumnHandle> compactEffectivePredicate,
Optional<HiveBucketHandle> bucketHandle,
List<HiveBucketing.HiveBucket> buckets,
ConnectorSession session,
HdfsEnvironment hdfsEnvironment,
NamenodeStats namenodeStats,
DirectoryLister directoryLister,
Executor executor,
int maxPartitionBatchSize,
int maxInitialSplits,
boolean recursiveDirWalkerEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Table |
Table.Builder.build() |
static Table |
MetastoreUtil.fromMetastoreApiTable(org.apache.hadoop.hive.metastore.api.Table table) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Table> |
HivePageSinkMetadataProvider.getTable() |
Optional<Table> |
HivePageSinkMetadata.getTable()
This method returns empty when the table has not been created yet (i.e.
|
Optional<Table> |
SemiTransactionalHiveMetastore.getTable(String databaseName,
String tableName) |
Optional<Table> |
ExtendedHiveMetastore.getTable(String databaseName,
String tableName) |
Optional<Table> |
CachingHiveMetastore.getTable(String databaseName,
String tableName) |
Optional<Table> |
BridgingHiveMetastore.getTable(String databaseName,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
static Table.Builder |
Table.builder(Table table) |
void |
SemiTransactionalHiveMetastore.createTable(ConnectorSession session,
Table table,
PrincipalPrivileges principalPrivileges,
Optional<org.apache.hadoop.fs.Path> currentPath,
boolean ignoreExisting)
currentLocation needs to be supplied if a writePath exists for the table. |
void |
ExtendedHiveMetastore.createTable(Table table,
PrincipalPrivileges principalPrivileges) |
void |
CachingHiveMetastore.createTable(Table table,
PrincipalPrivileges principalPrivileges) |
void |
BridgingHiveMetastore.createTable(Table table,
PrincipalPrivileges principalPrivileges) |
static Properties |
MetastoreUtil.getHiveSchema(Partition partition,
Table table) |
static Properties |
MetastoreUtil.getHiveSchema(Table table) |
static org.apache.hadoop.hive.metastore.ProtectMode |
MetastoreUtil.getProtectMode(Table table) |
void |
ExtendedHiveMetastore.replaceTable(String databaseName,
String tableName,
Table newTable,
PrincipalPrivileges principalPrivileges)
This should only be used if the semantic here is drop and add.
|
void |
CachingHiveMetastore.replaceTable(String databaseName,
String tableName,
Table newTable,
PrincipalPrivileges principalPrivileges) |
void |
BridgingHiveMetastore.replaceTable(String databaseName,
String tableName,
Table newTable,
PrincipalPrivileges principalPrivileges) |
void |
SemiTransactionalHiveMetastore.replaceView(String databaseName,
String tableName,
Table table,
PrincipalPrivileges principalPrivileges) |
static org.apache.hadoop.hive.metastore.api.Table |
MetastoreUtil.toMetastoreApiTable(Table table,
PrincipalPrivileges privileges) |
| Modifier and Type | Method and Description |
|---|---|
static HivePageSinkMetadata |
HivePageSinkMetadata.deserialize(SchemaTableName schemaTableName,
Optional<Table> table,
List<HivePageSinkMetadata.JsonSerializableEntry<List<String>,Optional<Partition>>> modifiedPartitions) |
| Constructor and Description |
|---|
HivePageSinkMetadata(SchemaTableName schemaTableName,
Optional<Table> table,
Map<List<String>,Optional<Partition>> modifiedPartitions) |
| Modifier and Type | Method and Description |
|---|---|
Table |
TableMetadata.toTable(String databaseName,
String tableName,
String location) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Table> |
FileHiveMetastore.getTable(String databaseName,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
void |
FileHiveMetastore.createTable(Table table,
PrincipalPrivileges principalPrivileges) |
void |
FileHiveMetastore.replaceTable(String databaseName,
String tableName,
Table newTable,
PrincipalPrivileges principalPrivileges) |
| Constructor and Description |
|---|
PartitionMetadata(Table table,
Partition partition) |
TableMetadata(Table table) |
Copyright © 2012-2017. All Rights Reserved.