public boolean equals(ColumnDictionaryChunk that) { if (that == null) return false; boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnDictionaryChunk(ColumnDictionaryChunk other) { if (other.isSetValues()) { List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>(other.values); this.values = __this__values; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case VALUES: return isSetValues(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); return list.hashCode(); }
@Override public int compareTo(ColumnDictionaryChunk other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnDictionaryChunk struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetValues()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (ByteBuffer _iter4 : struct.values) { oprot.writeBinary(_iter4); } } } }