org.apache.hadoop.hive.metastore.api.CommitTxnRequest Java Examples

The following examples show how to use org.apache.hadoop.hive.metastore.api.CommitTxnRequest. 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: ThriftHiveMetastoreClient.java    From presto with Apache License 2.0 4 votes vote down vote up
@Override
public void commitTransaction(long transactionId)
        throws TException
{
    client.commit_txn(new CommitTxnRequest(transactionId));
}
 
Example #2
Source File: FederatedHMSHandler.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public void commit_txn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException {
  getPrimaryClient().commit_txn(rqst);
}
 
Example #3
Source File: FederatedHMSHandlerTest.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Test
public void commit_txn() throws TException {
  CommitTxnRequest request = new CommitTxnRequest();
  handler.commit_txn(request);
  verify(primaryClient).commit_txn(request);
}
 
Example #4
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void commit_txn(final CommitTxnRequest rqst) throws TException {
    throw unimplemented("commit_txn", new Object[]{rqst});
}