if (!columnParent.isSetSuper_column()) { Map<ByteBuffer, List<SuperColumn>> result = new HashMap<ByteBuffer, List<SuperColumn>>(); for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> entry : cfmap.entrySet()) {
if (!columnParent.isSetSuper_column()) { Map<ByteBuffer, List<CounterSuperColumn>> result = new HashMap<ByteBuffer, List<CounterSuperColumn>>(); for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> entry : cfmap.entrySet()) {
/** 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_FAMILY: return isSetColumn_family(); case SUPER_COLUMN: return isSetSuper_column(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_family = true && (isSetColumn_family()); builder.append(present_column_family); if (present_column_family) builder.append(column_family); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); 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_FAMILY: return isSetColumn_family(); case SUPER_COLUMN: return isSetSuper_column(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_family = true && (isSetColumn_family()); builder.append(present_column_family); if (present_column_family) builder.append(column_family); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); 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_FAMILY: return isSetColumn_family(); case SUPER_COLUMN: return isSetSuper_column(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_family = true && (isSetColumn_family()); builder.append(present_column_family); if (present_column_family) builder.append(column_family); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); return builder.toHashCode(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnParent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.column_family); BitSet optionals = new BitSet(); if (struct.isSetSuper_column()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnParent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.column_family); BitSet optionals = new BitSet(); if (struct.isSetSuper_column()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } }
public boolean equals(ColumnParent that) { if (that == null) return false; boolean this_present_column_family = true && this.isSetColumn_family(); boolean that_present_column_family = true && that.isSetColumn_family(); if (this_present_column_family || that_present_column_family) { if (!(this_present_column_family && that_present_column_family)) return false; if (!this.column_family.equals(that.column_family)) return false; } boolean this_present_super_column = true && this.isSetSuper_column(); boolean that_present_super_column = true && that.isSetSuper_column(); if (this_present_super_column || that_present_super_column) { if (!(this_present_super_column && that_present_super_column)) return false; if (!this.super_column.equals(that.super_column)) return false; } return true; }
public boolean equals(ColumnParent that) { if (that == null) return false; boolean this_present_column_family = true && this.isSetColumn_family(); boolean that_present_column_family = true && that.isSetColumn_family(); if (this_present_column_family || that_present_column_family) { if (!(this_present_column_family && that_present_column_family)) return false; if (!this.column_family.equals(that.column_family)) return false; } boolean this_present_super_column = true && this.isSetSuper_column(); boolean that_present_super_column = true && that.isSetSuper_column(); if (this_present_super_column || that_present_super_column) { if (!(this_present_super_column && that_present_super_column)) return false; if (!this.super_column.equals(that.super_column)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnParent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.column_family); BitSet optionals = new BitSet(); if (struct.isSetSuper_column()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnParent struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.column_family != null) { oprot.writeFieldBegin(COLUMN_FAMILY_FIELD_DESC); oprot.writeString(struct.column_family); oprot.writeFieldEnd(); } if (struct.super_column != null) { if (struct.isSetSuper_column()) { oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC); oprot.writeBinary(struct.super_column); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * Performs a deep copy on <i>other</i>. */ public ColumnParent(ColumnParent other) { if (other.isSetColumn_family()) { this.column_family = other.column_family; } if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnParent(ColumnParent other) { if (other.isSetColumn_family()) { this.column_family = other.column_family; } if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnParent(ColumnParent other) { if (other.isSetColumn_family()) { this.column_family = other.column_family; } if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } }
private ClusteringIndexFilter toInternalFilter(CFMetaData metadata, ColumnParent parent, SliceRange range) { if (metadata.isSuper() && parent.isSetSuper_column()) return new ClusteringIndexNamesFilter(FBUtilities.singleton(Clustering.make(parent.bufferForSuper_column()), metadata.comparator), range.reversed); else return new ClusteringIndexSliceFilter(makeSlices(metadata, range), range.reversed); }
private ClusteringIndexFilter toInternalFilter(CFMetaData metadata, ColumnParent parent, SliceRange range) { if (metadata.isSuper() && parent.isSetSuper_column()) return new ClusteringIndexNamesFilter(FBUtilities.singleton(Clustering.make(parent.bufferForSuper_column()), metadata.comparator), range.reversed); else return new ClusteringIndexSliceFilter(makeSlices(metadata, range), range.reversed); }
private SliceQueryFilter toInternalFilter(CFMetaData metadata, ColumnParent parent, SliceRange range) { if (metadata.isSuper()) { CellNameType columnType = new SimpleDenseCellNameType(metadata.comparator.subtype(parent.isSetSuper_column() ? 1 : 0)); Composite start = columnType.fromByteBuffer(range.start); Composite finish = columnType.fromByteBuffer(range.finish); SliceQueryFilter filter = new SliceQueryFilter(start, finish, range.reversed, range.count); return SuperColumns.fromSCSliceFilter(metadata.comparator, parent.bufferForSuper_column(), filter); } Composite start = metadata.comparator.fromByteBuffer(range.start); Composite finish = metadata.comparator.fromByteBuffer(range.finish); return new SliceQueryFilter(start, finish, range.reversed, range.count); }