/** 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 START_KEY: return isSetStart_key(); case END_KEY: return isSetEnd_key(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_start_key = true && (isSetStart_key()); list.add(present_start_key); if (present_start_key) list.add(start_key); boolean present_end_key = true && (isSetEnd_key()); list.add(present_end_key); if (present_end_key) list.add(end_key); return list.hashCode(); }
public boolean equals(BlockletBTreeIndex that) { if (that == null) return false; boolean this_present_start_key = true && this.isSetStart_key(); boolean that_present_start_key = true && that.isSetStart_key(); if (this_present_start_key || that_present_start_key) { if (!(this_present_start_key && that_present_start_key)) return false; if (!this.start_key.equals(that.start_key)) return false; } boolean this_present_end_key = true && this.isSetEnd_key(); boolean that_present_end_key = true && that.isSetEnd_key(); if (this_present_end_key || that_present_end_key) { if (!(this_present_end_key && that_present_end_key)) return false; if (!this.end_key.equals(that.end_key)) return false; } return true; }
@Override public int compareTo(BlockletBTreeIndex other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetStart_key()).compareTo(other.isSetStart_key()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_key()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_key, other.start_key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnd_key()).compareTo(other.isSetEnd_key()); if (lastComparison != 0) { return lastComparison; } if (isSetEnd_key()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_key, other.end_key); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public BlockletBTreeIndex(BlockletBTreeIndex other) { if (other.isSetStart_key()) { this.start_key = org.apache.thrift.TBaseHelper.copyBinary(other.start_key); } if (other.isSetEnd_key()) { this.end_key = org.apache.thrift.TBaseHelper.copyBinary(other.end_key); } }