Search in sources :

Example 1 with MemoryPlugin

use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.

the class VerifierTestUtil method setupPresto.

public static StandaloneQueryRunner setupPresto() throws Exception {
    Session session = testSessionBuilder().setCatalog(CATALOG).setSchema(SCHEMA).build();
    StandaloneQueryRunner queryRunner = new StandaloneQueryRunner(session);
    queryRunner.installPlugin(new MemoryPlugin());
    queryRunner.createCatalog(CATALOG, "memory");
    return queryRunner;
}
Also used : MemoryPlugin(com.facebook.presto.plugin.memory.MemoryPlugin) StandaloneQueryRunner(com.facebook.presto.tests.StandaloneQueryRunner) Session(com.facebook.presto.Session)

Example 2 with MemoryPlugin

use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.

the class BenchmarkTestUtil method setupPresto.

public static StandaloneQueryRunner setupPresto() throws Exception {
    Session session = testSessionBuilder().setCatalog(CATALOG).setSchema(SCHEMA).build();
    StandaloneQueryRunner queryRunner = new StandaloneQueryRunner(session);
    queryRunner.installPlugin(new MemoryPlugin());
    queryRunner.createCatalog(CATALOG, "memory");
    return queryRunner;
}
Also used : MemoryPlugin(com.facebook.presto.plugin.memory.MemoryPlugin) StandaloneQueryRunner(com.facebook.presto.tests.StandaloneQueryRunner) Session(com.facebook.presto.Session)

Example 3 with MemoryPlugin

use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.

the class HiveFunctionsTestUtils method createTestingPrestoServer.

public static TestingPrestoServer createTestingPrestoServer() throws Exception {
    TestingPrestoServer server = new TestingPrestoServer();
    server.installPlugin(new MemoryPlugin());
    server.installPlugin(new HiveFunctionNamespacePlugin());
    server.createCatalog("memory", "memory");
    FunctionAndTypeManager functionAndTypeManager = server.getInstance(Key.get(FunctionAndTypeManager.class));
    functionAndTypeManager.loadFunctionNamespaceManager("hive-functions", "hive", getNamespaceManagerCreationProperties());
    server.refreshNodes();
    return server;
}
Also used : FunctionAndTypeManager(com.facebook.presto.metadata.FunctionAndTypeManager) TestingPrestoServer(com.facebook.presto.server.testing.TestingPrestoServer) MemoryPlugin(com.facebook.presto.plugin.memory.MemoryPlugin)

Aggregations

MemoryPlugin (com.facebook.presto.plugin.memory.MemoryPlugin)3 Session (com.facebook.presto.Session)2 StandaloneQueryRunner (com.facebook.presto.tests.StandaloneQueryRunner)2 FunctionAndTypeManager (com.facebook.presto.metadata.FunctionAndTypeManager)1 TestingPrestoServer (com.facebook.presto.server.testing.TestingPrestoServer)1