Package com.facebook.presto.metadata

Examples of com.facebook.presto.metadata.NativeConnectorId


        InMemoryNodeManager nodeManager = new InMemoryNodeManager();

        String nodeName = UUID.randomUUID().toString();
        nodeManager.addNode("native", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        NativeMetadata metadata = new NativeMetadata(new NativeConnectorId("native"), dbi, shardManager);

        tableHandle = metadata.createTable(SESSION, TEST_TABLE);
        dsColumnHandle = metadata.getColumnHandle(tableHandle, "ds");

        UUID shardUuid1 = UUID.randomUUID();
View Full Code Here


        // analyzer
        bindConfig(binder).to(AnalyzerConfig.class);

        // native
        binder.bind(NativeConnectorId.class).toInstance(new NativeConnectorId("default"));
        binder.bind(NativeMetadata.class).in(Scopes.SINGLETON);
        binder.bind(NativeSplitManager.class).in(Scopes.SINGLETON);
        binder.bind(NativeDataStreamProvider.class).in(Scopes.SINGLETON);
        binder.bind(NativeRecordSinkProvider.class).in(Scopes.SINGLETON);
View Full Code Here

        // analyzer
        bindConfig(binder).to(AnalyzerConfig.class);

        // native
        binder.bind(NativeConnectorId.class).toInstance(new NativeConnectorId("default"));
        binder.bind(NativeMetadata.class).in(Scopes.SINGLETON);
        binder.bind(NativeSplitManager.class).in(Scopes.SINGLETON);
        binder.bind(NativeDataStreamProvider.class).in(Scopes.SINGLETON);
        binder.bind(NativeRecordSinkProvider.class).in(Scopes.SINGLETON);
View Full Code Here

        InMemoryNodeManager nodeManager = new InMemoryNodeManager();

        String nodeName = UUID.randomUUID().toString();
        nodeManager.addNode("native", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        NativeMetadata metadata = new NativeMetadata(new NativeConnectorId("native"), dbi, shardManager);

        tableHandle = metadata.createTable(TEST_TABLE);
        dsColumnHandle = metadata.getColumnHandle(tableHandle, "ds");

        UUID shardUuid1 = UUID.randomUUID();
View Full Code Here

            NativeRecordSinkProvider nativeRecordSinkProvider = new NativeRecordSinkProvider(localStorageManager, nodeManager.getCurrentNode().getNodeIdentifier());

            IDBI metadataDbi = createDataSource(typeRegistry, databaseDir, "Metastore");
            DatabaseShardManager shardManager = new DatabaseShardManager(metadataDbi);
            NativeMetadata nativeMetadata = new NativeMetadata(new NativeConnectorId("default"), metadataDbi, shardManager);
            NativeSplitManager nativeSplitManager = new NativeSplitManager(nodeManager, shardManager, nativeMetadata);
            NativeConnectorFactory nativeConnectorFactory = new NativeConnectorFactory(nativeMetadata, nativeSplitManager, nativeDataStreamProvider, nativeRecordSinkProvider);

            return nativeConnectorFactory;
        }
View Full Code Here

        // analyzer
        bindConfig(binder).to(FeaturesConfig.class);

        // native
        binder.bind(NativeConnectorId.class).toInstance(new NativeConnectorId("default"));
        binder.bind(NativeMetadata.class).in(Scopes.SINGLETON);
        binder.bind(NativeSplitManager.class).in(Scopes.SINGLETON);
        binder.bind(NativeDataStreamProvider.class).in(Scopes.SINGLETON);
        binder.bind(NativeRecordSinkProvider.class).in(Scopes.SINGLETON);
View Full Code Here

        InMemoryNodeManager nodeManager = new InMemoryNodeManager();

        String nodeName = UUID.randomUUID().toString();
        nodeManager.addNode("native", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        NativeMetadata metadata = new NativeMetadata(new NativeConnectorId("native"), dbi, shardManager);

        tableHandle = metadata.createTable(TEST_TABLE);
        dsColumnHandle = metadata.getColumnHandle(tableHandle, "ds");

        UUID shardUuid1 = UUID.randomUUID();
View Full Code Here

            NativeRecordSinkProvider nativeRecordSinkProvider = new NativeRecordSinkProvider(localStorageManager, nodeManager.getCurrentNode().getNodeIdentifier());

            IDBI metadataDbi = createDataSource(databaseDir, "Metastore");
            DatabaseShardManager shardManager = new DatabaseShardManager(metadataDbi);
            NativeMetadata nativeMetadata = new NativeMetadata(new NativeConnectorId("default"), metadataDbi, shardManager);
            NativeSplitManager nativeSplitManager = new NativeSplitManager(nodeManager, shardManager, nativeMetadata);
            NativeConnectorFactory nativeConnectorFactory = new NativeConnectorFactory(nativeMetadata, nativeSplitManager, nativeDataStreamProvider, nativeRecordSinkProvider);

            return nativeConnectorFactory;
        }
View Full Code Here

        InMemoryNodeManager nodeManager = new InMemoryNodeManager();

        String nodeName = UUID.randomUUID().toString();
        nodeManager.addNode("native", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        NativeMetadata metadata = new NativeMetadata(new NativeConnectorId("native"), dbi, shardManager);

        tableHandle = metadata.createTable(TEST_TABLE);
        dsColumnHandle = metadata.getColumnHandle(tableHandle, "ds");

        UUID shardUuid1 = UUID.randomUUID();
View Full Code Here

TOP

Related Classes of com.facebook.presto.metadata.NativeConnectorId

Copyright © 2018 www.massapicom. 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.