Package com.facebook.thrift

Examples of com.facebook.thrift.TException


    }
    throw firstException;
  }

  public boolean tableExists(String tableName) throws MetaException,TException, UnknownDBException {
    TException firstException = null;
    String dbName = "default";
    for(URI store: this.metastoreUris) {
      try {
        this.open(store);
        boolean ret = client.table_exists(dbName, tableName);
View Full Code Here


    }
    throw firstException;
  }

  public List<FieldSchema> get_fields(String tableName) throws MetaException,UnknownTableException, TException {
    TException firstException = null;
    String dbName = "default";
    for(URI store: this.metastoreUris) {
      try {
        this.open(store);
        List<FieldSchema> fields = client.get_fields(dbName, tableName);
View Full Code Here

    // 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

  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

  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

    final byte buf[] = str.getBytes();
    trans_.write(buf, 0, buf.length);
  }

  public void writeBinary(byte[] bin) throws TException {
    throw new TException("Ctl separated protocol cannot support writing Binary data!");
  }
View Full Code Here

    }
    return ret == null && ! returnNulls ? "" : ret;
  }

  public byte[] readBinary() throws TException {
    throw new TException("Not implemented for control separated data");
  }
View Full Code Here

  public void writeMapBegin(TMap map) throws TException {
    if(map.keyType == TType.STRUCT ||
       map.keyType == TType.MAP ||
       map.keyType == TType.LIST ||
       map.keyType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }
    if(map.valueType == TType.STRUCT ||
       map.valueType == TType.MAP ||
       map.valueType == TType.LIST ||
       map.valueType == TType.SET) {
      throw new TException("Not implemented: nested structures");
    }
    separator_ = secondarySeparatorChar_;
  }
View Full Code Here

  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");
    }
    separator_ = secondarySeparatorChar_;
  }
View Full Code Here

  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");
    }
    separator_ = secondarySeparatorChar_;
  }
View Full Code Here

TOP

Related Classes of com.facebook.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.