Codota Logo
Connector.commit
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: io.prestosql/presto-main

public void commit()
{
  if (finished.compareAndSet(false, true)) {
    connector.commit(transactionHandle);
  }
}
origin: prestosql/presto

public void commit()
{
  if (finished.compareAndSet(false, true)) {
    connector.commit(transactionHandle);
  }
}
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.connectorConnectorcommit

Javadoc

Commit the transaction. Will be called at most once and will not be called if #rollback(ConnectorTransactionHandle) is called.

Popular methods of Connector

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Collectors (java.util.stream)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now