Package com.facebook.presto.hive.shaded.org.apache.thrift

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.TException


    public LockResponse check_lock(CheckLockRequest rqst)
        throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, TException {
      try {
        return getTxnHandler().checkLock(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here


    public void unlock(UnlockRequest rqst)
        throws NoSuchLockException, TxnOpenException, TException {
      try {
        getTxnHandler().unlock(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    @Override
    public ShowLocksResponse show_locks(ShowLocksRequest rqst) throws TException {
      try {
        return getTxnHandler().showLocks(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    public void heartbeat(HeartbeatRequest ids)
        throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, TException {
      try {
        getTxnHandler().heartbeat(ids);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    public HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest rqst)
      throws TException {
      try {
        return getTxnHandler().heartbeatTxnRange(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    @Override
    public void compact(CompactionRequest rqst) throws TException {
      try {
        getTxnHandler().compact(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    @Override
    public ShowCompactResponse show_compact(ShowCompactRequest rqst) throws TException {
      try {
        return getTxnHandler().showCompact(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

  @Override
  public void writeMapBegin(TMap map) throws TException {
    // nesting not allowed!
    if (map.keyType == TType.STRUCT || map.keyType == TType.MAP
        || map.keyType == TType.LIST || map.keyType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }
    // nesting not allowed!
    if (map.valueType == TType.STRUCT || map.valueType == TType.MAP
        || map.valueType == TType.LIST || map.valueType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }

    firstInnerField = true;
    isMap = true;
    inner = true;
View Full Code Here

  @Override
  public void writeListBegin(TList list) throws TException {
    if (list.elemType == TType.STRUCT || list.elemType == TType.MAP
        || list.elemType == TType.LIST || list.elemType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }
    firstInnerField = true;
    inner = true;
  }
View Full Code Here

  @Override
  public void writeSetBegin(TSet set) throws TException {
    if (set.elemType == TType.STRUCT || set.elemType == TType.MAP
        || set.elemType == TType.LIST || set.elemType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }
    firstInnerField = true;
    inner = true;
  }
View Full Code Here

TOP

Related Classes of com.facebook.presto.hive.shaded.org.apache.thrift.TException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.