@Override public TBase create() { return new ColumnDictionaryChunkMeta(); } });
public Object getFieldValue(_Fields field) { switch (field) { case MIN_SURROGATE_KEY: return getMin_surrogate_key(); case MAX_SURROGATE_KEY: return getMax_surrogate_key(); case START_OFFSET: return getStart_offset(); case END_OFFSET: return getEnd_offset(); case CHUNK_COUNT: return getChunk_count(); case SEGMENT_ID: return getSegment_id(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof ColumnDictionaryChunkMeta) return this.equals((ColumnDictionaryChunkMeta)that); return false; }
/** 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 MIN_SURROGATE_KEY: return isSetMin_surrogate_key(); case MAX_SURROGATE_KEY: return isSetMax_surrogate_key(); case START_OFFSET: return isSetStart_offset(); case END_OFFSET: return isSetEnd_offset(); case CHUNK_COUNT: return isSetChunk_count(); case SEGMENT_ID: return isSetSegment_id(); } throw new IllegalStateException(); }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.min_surrogate_key = iprot.readI32(); struct.setMin_surrogate_keyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.max_surrogate_key = iprot.readI32(); struct.setMax_surrogate_keyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start_offset = iprot.readI64(); struct.setStart_offsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.end_offset = iprot.readI64(); struct.setEnd_offsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.chunk_count = iprot.readI32(); struct.setChunk_countIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
lastComparison = Boolean.valueOf(isSetMin_surrogate_key()).compareTo(other.isSetMin_surrogate_key()); if (lastComparison != 0) { return lastComparison; if (isSetMin_surrogate_key()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_surrogate_key, other.min_surrogate_key); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetMax_surrogate_key()).compareTo(other.isSetMax_surrogate_key()); if (lastComparison != 0) { return lastComparison; if (isSetMax_surrogate_key()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_surrogate_key, other.max_surrogate_key); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetStart_offset()).compareTo(other.isSetStart_offset()); if (lastComparison != 0) { return lastComparison; if (isSetStart_offset()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_offset, other.start_offset); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetEnd_offset()).compareTo(other.isSetEnd_offset()); if (lastComparison != 0) { return lastComparison; if (isSetEnd_offset()) {
/** * Given a thrift object thie method will create a new wrapper class object * for dictionary chunk * * @param dictionaryChunkMeta reference for chunk meta thrift object * @return wrapper object of dictionary chunk meta */ private CarbonDictionaryColumnMetaChunk getNewInstanceOfCarbonDictionaryColumnMetaChunk( ColumnDictionaryChunkMeta dictionaryChunkMeta) { return new CarbonDictionaryColumnMetaChunk(dictionaryChunkMeta.getMin_surrogate_key(), dictionaryChunkMeta.getMax_surrogate_key(), dictionaryChunkMeta.getStart_offset(), dictionaryChunkMeta.getEnd_offset(), dictionaryChunkMeta.getChunk_count()); } }
public ColumnDictionaryChunkMeta deepCopy() { return new ColumnDictionaryChunkMeta(this); }
new ColumnDictionaryChunkMeta(min_surrogate_key, max_surrogate_key, chunk_start_offset, chunk_end_offset, chunk_count); try {