Java 类com.facebook.presto.spi.connector.ConnectorRecordSetProvider 实例源码

项目:presto    文件:JmxConnectorFactory.java   
@Override
public Connector create(String connectorId, Map<String, String> properties)
{
    return new Connector()
    {
        @Override
        public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly)
        {
            checkConnectorSupports(READ_COMMITTED, isolationLevel);
            return JmxTransactionHandle.INSTANCE;
        }

        @Override
        public ConnectorMetadata getMetadata(ConnectorTransactionHandle transactionHandle)
        {
            return new JmxMetadata(connectorId, mbeanServer);
        }

        @Override
        public ConnectorSplitManager getSplitManager()
        {
            return new JmxSplitManager(connectorId, nodeManager);
        }

        @Override
        public ConnectorRecordSetProvider getRecordSetProvider()
        {
            return new JmxRecordSetProvider(mbeanServer, nodeManager.getCurrentNode().getNodeIdentifier());
        }
    };
}
项目:presto    文件:TpchConnectorFactory.java   
@Override
public Connector create(String connectorId, Map<String, String> properties)
{
    int splitsPerNode = getSplitsPerNode(properties);

    return new Connector()
    {
        @Override
        public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly)
        {
            return TpchTransactionHandle.INSTANCE;
        }

        @Override
        public ConnectorMetadata getMetadata(ConnectorTransactionHandle transaction)
        {
            return new TpchMetadata(connectorId);
        }

        @Override
        public ConnectorSplitManager getSplitManager()
        {
            return new TpchSplitManager(connectorId, nodeManager, splitsPerNode);
        }

        @Override
        public ConnectorRecordSetProvider getRecordSetProvider()
        {
            return new TpchRecordSetProvider();
        }
    };
}
项目:presto    文件:SampledTpchConnectorFactory.java   
@Override
public Connector create(String connectorId, Map<String, String> properties)
{
    requireNonNull(properties, "properties is null");
    int splitsPerNode = getSplitsPerNode(properties);

    return new Connector()
    {
        @Override
        public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly)
        {
            return TpchTransactionHandle.INSTANCE;
        }

        @Override
        public ConnectorMetadata getMetadata(ConnectorTransactionHandle transaction)
        {
            return new SampledTpchMetadata(connectorId);
        }

        @Override
        public ConnectorSplitManager getSplitManager()
        {
            return new TpchSplitManager(connectorId, nodeManager, splitsPerNode);
        }

        @Override
        public ConnectorRecordSetProvider getRecordSetProvider()
        {
            return new SampledTpchRecordSetProvider(connectorId, sampleWeight);
        }
    };
}
项目:presto-rest    文件:RestConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return new RestRecordSetProvider(rest);
}
项目:presto-ethereum    文件:EthereumConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider() {
    return recordSetProvider;
}
项目:presto-kudu    文件:KuduConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return recordSetProvider;
}
项目:presto    文件:KafkaConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return recordSetProvider;
}
项目:presto    文件:IndexedTpchConnectorFactory.java   
@Override
public Connector create(String connectorId, Map<String, String> properties)
{
    int splitsPerNode = getSplitsPerNode(properties);
    TpchIndexedData indexedData = new TpchIndexedData(connectorId, indexSpec);

    return new Connector()
    {
        @Override
        public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly)
        {
            return TpchTransactionHandle.INSTANCE;
        }

        @Override
        public ConnectorMetadata getMetadata(ConnectorTransactionHandle transactionHandle)
        {
            return new TpchIndexMetadata(connectorId, indexedData);
        }

        @Override
        public ConnectorSplitManager getSplitManager()
        {
            return new TpchSplitManager(connectorId, nodeManager, splitsPerNode);
        }

        @Override
        public ConnectorRecordSetProvider getRecordSetProvider()
        {
            return new TpchRecordSetProvider();
        }

        @Override
        public ConnectorIndexProvider getIndexProvider()
        {
            return new TpchIndexProvider(indexedData);
        }

        @Override
        public Set<SystemTable> getSystemTables()
        {
            return ImmutableSet.of(new ExampleSystemTable());
        }
    };
}
项目:presto    文件:LegacyTransactionConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return new LegacyConnectorRecordSetProvider(connector.getRecordSetProvider());
}
项目:presto    文件:LegacyConnectorRecordSetProvider.java   
public LegacyConnectorRecordSetProvider(com.facebook.presto.spi.ConnectorRecordSetProvider delegate)
{
    this.delegate = requireNonNull(delegate, "delegate is null");
}
项目:presto    文件:SystemConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return recordSetProvider;
}
项目:presto    文件:RecordPageSourceProvider.java   
public RecordPageSourceProvider(ConnectorRecordSetProvider recordSetProvider)
{
    this.recordSetProvider = requireNonNull(recordSetProvider, "recordSetProvider is null");
}
项目:presto    文件:CassandraConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return recordSetProvider;
}
项目:presto-plugins    文件:SpreadsheetConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider() {
  return _recordSetProvider;
}
项目:presto-kinesis    文件:KinesisConnector.java   
@Override
public ConnectorRecordSetProvider getRecordSetProvider()
{
    return recordSetProvider;
}