com.facebook.presto.spi.transaction.IsolationLevel Java Examples
The following examples show how to use
com.facebook.presto.spi.transaction.IsolationLevel.
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: ElasticsearchConnector.java From presto-connectors with Apache License 2.0 | 5 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_UNCOMMITTED, isolationLevel); ConnectorTransactionHandle transaction = new ElasticsearchTransactionHandle(); transactions.put(transaction, new ElasticsearchMetadata(connectorId, client)); return transaction; }
Example #2
Source File: ParaflowConnector.java From paraflow with Apache License 2.0 | 5 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_UNCOMMITTED, isolationLevel); ParaflowTransactionHandle transaction = new ParaflowTransactionHandle(); transactions.putIfAbsent(transaction, paraflowMetadataFactory.create()); return transaction; }
Example #3
Source File: KubeConnector.java From kubesql with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_COMMITTED, isolationLevel); return KubeTransactionHandle.INSTANCE; }
Example #4
Source File: HbaseConnector.java From presto-connectors with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_UNCOMMITTED, isolationLevel); return new HbaseTransactionHandle(); }
Example #5
Source File: EthereumConnector.java From presto-ethereum with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_COMMITTED, isolationLevel); return EthereumTransactionHandle.INSTANCE; }
Example #6
Source File: KuduConnector.java From presto-kudu with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { checkConnectorSupports(READ_COMMITTED, isolationLevel); return KuduTransactionHandle.INSTANCE; }
Example #7
Source File: BitcoinConnector.java From hadoopcryptoledger with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean readOnly) { // TODO Auto-generated method stub return null; }
Example #8
Source File: KinesisConnector.java From presto-kinesis with Apache License 2.0 | 4 votes |
@Override public ConnectorTransactionHandle beginTransaction(IsolationLevel isolationLevel, boolean b) { checkConnectorSupports(READ_COMMITTED, isolationLevel); return KinesisTransactionHandle.INSTANCE; }