com.facebook.presto.spi.connector.ConnectorPageSourceProvider Java Examples

The following examples show how to use com.facebook.presto.spi.connector.ConnectorPageSourceProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KuduModule.java    From presto-kudu with Apache License 2.0 6 votes vote down vote up
@Override
protected void configure() {
    bind(TypeManager.class).toInstance(typeManager);

    bind(KuduConnector.class).in(Scopes.SINGLETON);
    bind(KuduConnectorId.class).toInstance(new KuduConnectorId(connectorId));
    bind(KuduMetadata.class).in(Scopes.SINGLETON);
    bind(KuduTableProperties.class).in(Scopes.SINGLETON);
    bind(ConnectorSplitManager.class).to(KuduSplitManager.class).in(Scopes.SINGLETON);
    bind(ConnectorRecordSetProvider.class).to(KuduRecordSetProvider.class)
            .in(Scopes.SINGLETON);
    bind(ConnectorPageSourceProvider.class).to(KuduPageSourceProvider.class)
            .in(Scopes.SINGLETON);
    bind(ConnectorPageSinkProvider.class).to(KuduPageSinkProvider.class).in(Scopes.SINGLETON);
    bind(KuduHandleResolver.class).in(Scopes.SINGLETON);
    bind(KuduRecordSetProvider.class).in(Scopes.SINGLETON);
    configBinder(binder()).bindConfig(KuduClientConfig.class);

    bind(RangePartitionProcedures.class).in(Scopes.SINGLETON);
    Multibinder.newSetBinder(binder(), Procedure.class);
}
 
Example #2
Source File: KuduConnector.java    From presto-kudu with Apache License 2.0 6 votes vote down vote up
@Inject
public KuduConnector(LifeCycleManager lifeCycleManager, KuduMetadata metadata,
                     ConnectorSplitManager splitManager, ConnectorRecordSetProvider recordSetProvider,
                     KuduTableProperties tableProperties,
                     ConnectorPageSourceProvider pageSourceProvider,
                     ConnectorPageSinkProvider pageSinkProvider,
                     Set<Procedure> procedures) {
    this.lifeCycleManager = requireNonNull(lifeCycleManager, "lifeCycleManager is null");
    this.metadata = requireNonNull(metadata, "metadata is null");
    this.splitManager = requireNonNull(splitManager, "splitManager is null");
    this.recordSetProvider = requireNonNull(recordSetProvider, "recordSetProvider is null");
    this.pageSourceProvider = requireNonNull(pageSourceProvider, "pageSourceProvider is null");
    this.tableProperties = requireNonNull(tableProperties, "tableProperties is null");
    this.pageSinkProvider = requireNonNull(pageSinkProvider, "pageSinkProvider is null");
    this.procedures = ImmutableSet.copyOf(requireNonNull(procedures, "procedures is null"));
}
 
Example #3
Source File: ElasticsearchConnector.java    From presto-connectors with Apache License 2.0 4 votes vote down vote up
@Override
public ConnectorPageSourceProvider getPageSourceProvider()
{
    return this.pageSourceProvider;
}
 
Example #4
Source File: ParaflowConnector.java    From paraflow with Apache License 2.0 4 votes vote down vote up
@Override
public ConnectorPageSourceProvider getPageSourceProvider()
{
    return paraflowPageSourceProvider;
}
 
Example #5
Source File: KuduConnector.java    From presto-kudu with Apache License 2.0 4 votes vote down vote up
@Override
public ConnectorPageSourceProvider getPageSourceProvider() {
    return pageSourceProvider;
}