Beispiel #1
0
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, TableStore struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   BitSet optionals = new BitSet();
   if (struct.isSetTableNames()) {
     optionals.set(0);
   }
   oprot.writeBitSet(optionals, 1);
   if (struct.isSetTableNames()) {
     {
       oprot.writeI32(struct.tableNames.size());
       for (String _iter4 : struct.tableNames) {
         oprot.writeString(_iter4);
       }
     }
   }
 }
Beispiel #2
0
  public boolean equals(TableStore that) {
    if (that == null) return false;

    boolean this_present_tableNames = true && this.isSetTableNames();
    boolean that_present_tableNames = true && that.isSetTableNames();
    if (this_present_tableNames || that_present_tableNames) {
      if (!(this_present_tableNames && that_present_tableNames)) return false;
      if (!this.tableNames.equals(that.tableNames)) return false;
    }

    return true;
  }
Beispiel #3
0
  @Override
  public int compareTo(TableStore other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetTableNames()).compareTo(other.isSetTableNames());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTableNames()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNames, other.tableNames);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Beispiel #4
0
 /** Performs a deep copy on <i>other</i>. */
 public TableStore(TableStore other) {
   if (other.isSetTableNames()) {
     List<String> __this__tableNames = new ArrayList<String>(other.tableNames);
     this.tableNames = __this__tableNames;
   }
 }