Ejemplo n.º 1
0
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, FetchTweetQuery struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   BitSet optionals = new BitSet();
   if (struct.isSetTids()) {
     optionals.set(0);
   }
   oprot.writeBitSet(optionals, 1);
   if (struct.isSetTids()) {
     {
       oprot.writeI32(struct.tids.size());
       for (long _iter4 : struct.tids) {
         oprot.writeI64(_iter4);
       }
     }
   }
 }
Ejemplo n.º 2
0
  public boolean equals(FetchTweetQuery that) {
    if (that == null) return false;

    boolean this_present_tids = true && this.isSetTids();
    boolean that_present_tids = true && that.isSetTids();
    if (this_present_tids || that_present_tids) {
      if (!(this_present_tids && that_present_tids)) return false;
      if (!this.tids.equals(that.tids)) return false;
    }

    return true;
  }
Ejemplo n.º 3
0
  @Override
  public int compareTo(FetchTweetQuery other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetTids()).compareTo(other.isSetTids());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTids()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tids, other.tids);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Ejemplo n.º 4
0
 /** Performs a deep copy on <i>other</i>. */
 public FetchTweetQuery(FetchTweetQuery other) {
   if (other.isSetTids()) {
     List<Long> __this__tids = new ArrayList<Long>(other.tids);
     this.tids = __this__tids;
   }
 }