| Constructor and Description |
|---|
HiveEndpoint(java.lang.String name,
org.apache.hadoop.hive.conf.HiveConf hiveConf,
com.google.common.base.Supplier<com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient> metaStoreClientSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.metastore.api.Database |
getDatabase(java.lang.String database) |
org.apache.hadoop.hive.conf.HiveConf |
getHiveConf() |
com.google.common.base.Supplier<com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient> |
getMetaStoreClientSupplier() |
java.lang.String |
getMetaStoreUris() |
java.lang.String |
getName() |
PartitionsAndStatistics |
getPartitions(org.apache.hadoop.hive.metastore.api.Table table,
java.lang.String partitionPredicate,
int maxPartitions) |
com.google.common.base.Optional<org.apache.hadoop.hive.metastore.api.Table> |
getTable(com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient client,
java.lang.String database,
java.lang.String table) |
TableAndStatistics |
getTableAndStatistics(java.lang.String database,
java.lang.String tableName) |
abstract TableAndStatistics |
getTableAndStatistics(TableReplication tableReplication) |
@Autowired
public HiveEndpoint(java.lang.String name,
org.apache.hadoop.hive.conf.HiveConf hiveConf,
com.google.common.base.Supplier<com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient> metaStoreClientSupplier)
public java.lang.String getName()
public org.apache.hadoop.hive.conf.HiveConf getHiveConf()
public java.lang.String getMetaStoreUris()
public com.google.common.base.Supplier<com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient> getMetaStoreClientSupplier()
public org.apache.hadoop.hive.metastore.api.Database getDatabase(java.lang.String database)
public com.google.common.base.Optional<org.apache.hadoop.hive.metastore.api.Table> getTable(com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient client,
java.lang.String database,
java.lang.String table)
Optional.absent()public TableAndStatistics getTableAndStatistics(java.lang.String database, java.lang.String tableName)
public abstract TableAndStatistics getTableAndStatistics(TableReplication tableReplication)
public PartitionsAndStatistics getPartitions(org.apache.hadoop.hive.metastore.api.Table table, java.lang.String partitionPredicate, int maxPartitions) throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2016–2022 Expedia Group. All rights reserved.