Tabnine Logo
Connector.getPageSourceProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
getPageSourceProvider
method
in
io.prestosql.spi.connector.Connector

Best Java code snippets using io.prestosql.spi.connector.Connector.getPageSourceProvider (Showing top 4 results out of 315)

origin: io.prestosql/presto-main

connectorPageSourceProvider = connector.getPageSourceProvider();
requireNonNull(connectorPageSourceProvider, format("Connector %s returned a null page source provider", connectorId));
origin: prestosql/presto

connectorPageSourceProvider = connector.getPageSourceProvider();
requireNonNull(connectorPageSourceProvider, format("Connector %s returned a null page source provider", connectorId));
origin: prestosql/presto

private static void assertCreateConnector(String metastoreUri)
{
  HiveConnectorFactory connectorFactory = new HiveConnectorFactory(
      "hive-test",
      HiveConnector.class.getClassLoader(),
      Optional.empty());
  Map<String, String> config = ImmutableMap.<String, String>builder()
      .put("hive.metastore.uri", metastoreUri)
      .build();
  Connector connector = connectorFactory.create("hive-test", config, new TestingConnectorContext());
  ConnectorTransactionHandle transaction = connector.beginTransaction(READ_UNCOMMITTED, true);
  assertInstanceOf(connector.getMetadata(transaction), ClassLoaderSafeConnectorMetadata.class);
  assertInstanceOf(connector.getSplitManager(), ClassLoaderSafeConnectorSplitManager.class);
  assertInstanceOf(connector.getPageSourceProvider(), ConnectorPageSourceProvider.class);
  connector.commit(transaction);
}
origin: io.prestosql/presto-hive

private static void assertCreateConnector(String metastoreUri)
{
  HiveConnectorFactory connectorFactory = new HiveConnectorFactory(
      "hive-test",
      HiveConnector.class.getClassLoader(),
      Optional.empty());
  Map<String, String> config = ImmutableMap.<String, String>builder()
      .put("hive.metastore.uri", metastoreUri)
      .build();
  Connector connector = connectorFactory.create("hive-test", config, new TestingConnectorContext());
  ConnectorTransactionHandle transaction = connector.beginTransaction(READ_UNCOMMITTED, true);
  assertInstanceOf(connector.getMetadata(transaction), ClassLoaderSafeConnectorMetadata.class);
  assertInstanceOf(connector.getSplitManager(), ClassLoaderSafeConnectorSplitManager.class);
  assertInstanceOf(connector.getPageSourceProvider(), ConnectorPageSourceProvider.class);
  connector.commit(transaction);
}
io.prestosql.spi.connectorConnectorgetPageSourceProvider

Popular methods of Connector

  • getMetadata
  • getSplitManager
  • beginTransaction
  • commit
  • getAnalyzeProperties
  • getRecordSetProvider
  • getSystemTables
  • shutdown
  • getAccessControl
  • getColumnProperties
  • getIndexProvider
  • getNodePartitioningProvider
  • getIndexProvider,
  • getNodePartitioningProvider,
  • getPageSinkProvider,
  • getProcedures,
  • getSchemaProperties,
  • getSessionProperties,
  • getTableProperties,
  • isSingleStatementWritesOnly,
  • rollback

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now