Package com.facebook.presto.server.testing

Examples of com.facebook.presto.server.testing.TestingPrestoServer.createConnection()


        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties.build(), ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());

        // install tpch plugins
        server.installPlugin(new TpchPlugin());
        server.createConnection("tpch", "tpch");

        server.installPlugin(new SampledTpchPlugin());
        server.createConnection("tpch_sampled", "tpch_sampled");

        // install raptor plugin
View Full Code Here


        // install tpch plugins
        server.installPlugin(new TpchPlugin());
        server.createConnection("tpch", "tpch");

        server.installPlugin(new SampledTpchPlugin());
        server.createConnection("tpch_sampled", "tpch_sampled");

        // install raptor plugin
        File baseDir = server.getBaseDataDir().toFile();

        Map<String, String> raptorProperties = ImmutableMap.<String, String>builder()
View Full Code Here

                .put("metadata.db.filename", new File(baseDir, "db").getAbsolutePath())
                .put("storage.data-directory", new File(baseDir, "data").getAbsolutePath())
                .build();

        server.installPlugin(new RaptorPlugin());
        server.createConnection("default", "raptor", raptorProperties);

        return server;
    }
}
View Full Code Here

                .put("datasources", "tpch_indexed")
                .build();

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties, ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());
        server.installPlugin(new IndexedTpchPlugin(getTpchIndexSpec()));
        server.createConnection("tpch_indexed", "tpch_indexed");
        return server;
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.