@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_blocklet_length = true; list.add(present_blocklet_length); if (present_blocklet_length) list.add(blocklet_length); boolean present_mutation = true && (isSetMutation()); list.add(present_mutation); if (present_mutation) list.add(mutation.getValue()); boolean present_blocklet_index = true && (isSetBlocklet_index()); list.add(present_blocklet_index); if (present_blocklet_index) list.add(blocklet_index); boolean present_blocklet_info = true && (isSetBlocklet_info()); list.add(present_blocklet_info); if (present_blocklet_info) list.add(blocklet_info); boolean present_dictionary = true && (isSetDictionary()); list.add(present_dictionary); if (present_dictionary) list.add(dictionary); return list.hashCode(); }
if (isSetDictionary()) { if (!first) sb.append(", "); sb.append("dictionary:");
/** 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 BLOCKLET_LENGTH: return isSetBlocklet_length(); case MUTATION: return isSetMutation(); case BLOCKLET_INDEX: return isSetBlocklet_index(); case BLOCKLET_INFO: return isSetBlocklet_info(); case DICTIONARY: return isSetDictionary(); } throw new IllegalStateException(); }
if (struct.isSetDictionary()) { oprot.writeFieldBegin(DICTIONARY_FIELD_DESC); struct.dictionary.write(oprot);
lastComparison = Boolean.valueOf(isSetDictionary()).compareTo(other.isSetDictionary()); if (lastComparison != 0) { return lastComparison; if (isSetDictionary()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dictionary, other.dictionary); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BlockletHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.blocklet_length); oprot.writeI32(struct.mutation.getValue()); struct.blocklet_info.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetBlocklet_index()) { optionals.set(0); } if (struct.isSetDictionary()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetBlocklet_index()) { struct.blocklet_index.write(oprot); } if (struct.isSetDictionary()) { struct.dictionary.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public BlockletHeader(BlockletHeader other) { __isset_bitfield = other.__isset_bitfield; this.blocklet_length = other.blocklet_length; if (other.isSetMutation()) { this.mutation = other.mutation; } if (other.isSetBlocklet_index()) { this.blocklet_index = new BlockletIndex(other.blocklet_index); } if (other.isSetBlocklet_info()) { this.blocklet_info = new BlockletInfo(other.blocklet_info); } if (other.isSetDictionary()) { this.dictionary = new org.apache.carbondata.format.ColumnDictionaryChunk(other.dictionary); } }
boolean this_present_dictionary = true && this.isSetDictionary(); boolean that_present_dictionary = true && that.isSetDictionary(); if (this_present_dictionary || that_present_dictionary) { if (!(this_present_dictionary && that_present_dictionary))