Search in sources :

Example 6 with HivePartitionMutator

use of com.facebook.presto.hive.metastore.HivePartitionMutator in project presto by prestodb.

the class TestHiveClientInMemoryMetastore method createMetastore.

@Override
protected ExtendedHiveMetastore createMetastore(File tempDir) {
    File baseDir = new File(tempDir, "metastore");
    InMemoryHiveMetastore hiveMetastore = new InMemoryHiveMetastore(baseDir);
    return new BridgingHiveMetastore(hiveMetastore, new HivePartitionMutator());
}
Also used : InMemoryHiveMetastore(com.facebook.presto.hive.metastore.thrift.InMemoryHiveMetastore) File(java.io.File) HivePartitionMutator(com.facebook.presto.hive.metastore.HivePartitionMutator) BridgingHiveMetastore(com.facebook.presto.hive.metastore.thrift.BridgingHiveMetastore)

Aggregations

HivePartitionMutator (com.facebook.presto.hive.metastore.HivePartitionMutator)6 BridgingHiveMetastore (com.facebook.presto.hive.metastore.thrift.BridgingHiveMetastore)6 HiveCluster (com.facebook.presto.hive.metastore.thrift.HiveCluster)3 InMemoryHiveMetastore (com.facebook.presto.hive.metastore.thrift.InMemoryHiveMetastore)3 TestingHiveCluster (com.facebook.presto.hive.metastore.thrift.TestingHiveCluster)3 ThriftHiveMetastore (com.facebook.presto.hive.metastore.thrift.ThriftHiveMetastore)3 File (java.io.File)3 CacheConfig (com.facebook.presto.cache.CacheConfig)2 NoHdfsAuthentication (com.facebook.presto.hive.authentication.NoHdfsAuthentication)2 OutputStreamDataSinkFactory (com.facebook.presto.hive.datasink.OutputStreamDataSinkFactory)2 ExtendedHiveMetastore (com.facebook.presto.hive.metastore.ExtendedHiveMetastore)2 ExecutorService (java.util.concurrent.ExecutorService)2 BoundedExecutor (com.facebook.airlift.concurrent.BoundedExecutor)1 CounterStat (com.facebook.airlift.stats.CounterStat)1 GroupByHashPageIndexerFactory (com.facebook.presto.GroupByHashPageIndexerFactory)1 CachingHiveMetastore (com.facebook.presto.hive.metastore.CachingHiveMetastore)1 SchemaTableName (com.facebook.presto.spi.SchemaTableName)1 FeaturesConfig (com.facebook.presto.sql.analyzer.FeaturesConfig)1 JoinCompiler (com.facebook.presto.sql.gen.JoinCompiler)1 TestingNodeManager (com.facebook.presto.testing.TestingNodeManager)1