@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_names = true && (isSetColumn_names()); builder.append(present_column_names); if (present_column_names) builder.append(column_names); boolean present_slice_range = true && (isSetSlice_range()); builder.append(present_slice_range); if (present_slice_range) builder.append(slice_range); return builder.toHashCode(); }
/** 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 COLUMN_NAMES: return isSetColumn_names(); case SLICE_RANGE: return isSetSlice_range(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_names = true && (isSetColumn_names()); builder.append(present_column_names); if (present_column_names) builder.append(column_names); boolean present_slice_range = true && (isSetSlice_range()); builder.append(present_slice_range); if (present_slice_range) builder.append(slice_range); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_names = true && (isSetColumn_names()); builder.append(present_column_names); if (present_column_names) builder.append(column_names); boolean present_slice_range = true && (isSetSlice_range()); builder.append(present_slice_range); if (present_slice_range) builder.append(slice_range); return builder.toHashCode(); }
/** 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 COLUMN_NAMES: return isSetColumn_names(); case SLICE_RANGE: return isSetSlice_range(); } throw new IllegalStateException(); }
/** 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 COLUMN_NAMES: return isSetColumn_names(); case SLICE_RANGE: return isSetSlice_range(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public SlicePredicate(SlicePredicate other) { if (other.isSetColumn_names()) { List<ByteBuffer> __this__column_names = new ArrayList<ByteBuffer>(other.column_names); this.column_names = __this__column_names; } if (other.isSetSlice_range()) { this.slice_range = new SliceRange(other.slice_range); } }
/** * Performs a deep copy on <i>other</i>. */ public SlicePredicate(SlicePredicate other) { if (other.isSetColumn_names()) { List<ByteBuffer> __this__column_names = new ArrayList<ByteBuffer>(other.column_names); this.column_names = __this__column_names; } if (other.isSetSlice_range()) { this.slice_range = new SliceRange(other.slice_range); } }
/** * Performs a deep copy on <i>other</i>. */ public SlicePredicate(SlicePredicate other) { if (other.isSetColumn_names()) { List<ByteBuffer> __this__column_names = new ArrayList<ByteBuffer>(other.column_names); this.column_names = __this__column_names; } if (other.isSetSlice_range()) { this.slice_range = new SliceRange(other.slice_range); } }
@Override public String toString() { StringBuilder sb = new StringBuilder("SlicePredicate("); boolean first = true; if (isSetColumn_names()) { sb.append("column_names:"); if (this.column_names == null) { sb.append("null"); } else { sb.append(this.column_names); } first = false; } if (isSetSlice_range()) { if (!first) sb.append(", "); sb.append("slice_range:"); if (this.slice_range == null) { sb.append("null"); } else { sb.append(this.slice_range); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("SlicePredicate("); boolean first = true; if (isSetColumn_names()) { sb.append("column_names:"); if (this.column_names == null) { sb.append("null"); } else { sb.append(this.column_names); } first = false; } if (isSetSlice_range()) { if (!first) sb.append(", "); sb.append("slice_range:"); if (this.slice_range == null) { sb.append("null"); } else { sb.append(this.slice_range); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("SlicePredicate("); boolean first = true; if (isSetColumn_names()) { sb.append("column_names:"); if (this.column_names == null) { sb.append("null"); } else { sb.append(this.column_names); } first = false; } if (isSetSlice_range()) { if (!first) sb.append(", "); sb.append("slice_range:"); if (this.slice_range == null) { sb.append("null"); } else { sb.append(this.slice_range); } first = false; } sb.append(")"); return sb.toString(); }
public boolean equals(SlicePredicate that) { if (that == null) return false; boolean this_present_column_names = true && this.isSetColumn_names(); boolean that_present_column_names = true && that.isSetColumn_names(); if (this_present_column_names || that_present_column_names) { if (!(this_present_column_names && that_present_column_names)) return false; if (!this.column_names.equals(that.column_names)) return false; } boolean this_present_slice_range = true && this.isSetSlice_range(); boolean that_present_slice_range = true && that.isSetSlice_range(); if (this_present_slice_range || that_present_slice_range) { if (!(this_present_slice_range && that_present_slice_range)) return false; if (!this.slice_range.equals(that.slice_range)) return false; } return true; }
public boolean equals(SlicePredicate that) { if (that == null) return false; boolean this_present_column_names = true && this.isSetColumn_names(); boolean that_present_column_names = true && that.isSetColumn_names(); if (this_present_column_names || that_present_column_names) { if (!(this_present_column_names && that_present_column_names)) return false; if (!this.column_names.equals(that.column_names)) return false; } boolean this_present_slice_range = true && this.isSetSlice_range(); boolean that_present_slice_range = true && that.isSetSlice_range(); if (this_present_slice_range || that_present_slice_range) { if (!(this_present_slice_range && that_present_slice_range)) return false; if (!this.slice_range.equals(that.slice_range)) return false; } return true; }
public boolean equals(SlicePredicate that) { if (that == null) return false; boolean this_present_column_names = true && this.isSetColumn_names(); boolean that_present_column_names = true && that.isSetColumn_names(); if (this_present_column_names || that_present_column_names) { if (!(this_present_column_names && that_present_column_names)) return false; if (!this.column_names.equals(that.column_names)) return false; } boolean this_present_slice_range = true && this.isSetSlice_range(); boolean that_present_slice_range = true && that.isSetSlice_range(); if (this_present_slice_range || that_present_slice_range) { if (!(this_present_slice_range && that_present_slice_range)) return false; if (!this.slice_range.equals(that.slice_range)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SlicePredicate struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetColumn_names()) { optionals.set(0); } if (struct.isSetSlice_range()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_names()) { { oprot.writeI32(struct.column_names.size()); for (ByteBuffer _iter20 : struct.column_names) { oprot.writeBinary(_iter20); } } } if (struct.isSetSlice_range()) { struct.slice_range.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SlicePredicate struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetColumn_names()) { optionals.set(0); } if (struct.isSetSlice_range()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_names()) { { oprot.writeI32(struct.column_names.size()); for (ByteBuffer _iter20 : struct.column_names) { oprot.writeBinary(_iter20); } } } if (struct.isSetSlice_range()) { struct.slice_range.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SlicePredicate struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetColumn_names()) { optionals.set(0); } if (struct.isSetSlice_range()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_names()) { { oprot.writeI32(struct.column_names.size()); for (ByteBuffer _iter20 : struct.column_names) { oprot.writeBinary(_iter20); } } } if (struct.isSetSlice_range()) { struct.slice_range.write(oprot); } }
static boolean isEmptyPredicate(SlicePredicate predicate) { if (predicate == null) return true; if (predicate.isSetColumn_names() && predicate.getSlice_range() == null) return false; if (predicate.getSlice_range() == null) return true; byte[] start = predicate.getSlice_range().getStart(); if ((start != null) && (start.length > 0)) return false; byte[] finish = predicate.getSlice_range().getFinish(); if ((finish != null) && (finish.length > 0)) return false; return true; }
static boolean isEmptyPredicate(SlicePredicate predicate) { if (predicate == null) return true; if (predicate.isSetColumn_names() && predicate.getSlice_range() == null) return false; if (predicate.getSlice_range() == null) return true; byte[] start = predicate.getSlice_range().getStart(); if ((start != null) && (start.length > 0)) return false; byte[] finish = predicate.getSlice_range().getFinish(); if ((finish != null) && (finish.length > 0)) return false; return true; }