@Override public ByteBuffer getNameBytes() { return column.isSetName() ? column.name.duplicate() : null; }
@Override public N getName() { if ( column.isSetName() ) { if ( null == cachedName) { cachedName = nameSerializer.fromByteBuffer(column.name.duplicate()); } return cachedName; } else { return null; } }
/** * Convenience method to get the name buffer for the specified column and * decompose it into the name and timestamp. */ public static Pair<byte[], Long> decomposeName(Column column) { ByteBuffer nameBuffer; if (column.isSetName()) { nameBuffer = column.bufferForName(); } else { // the column buffer has not yet been set/cached // so we must fallback on the slowpath and force // the transform to bytes and wrap ourselves nameBuffer = ByteBuffer.wrap(column.getName()); } return decompose(nameBuffer); }
@Override public ByteBuffer getNameBytes() { return column.isSetName() ? column.name.duplicate() : null; }
@Override public ByteBuffer getNameBytes() { return column.isSetName() ? column.name.duplicate() : null; }
@Override public N getName() { if ( column.isSetName() ) { if ( null == cachedName) { cachedName = nameSerializer.fromByteBuffer(column.name.duplicate()); } return cachedName; } else { return null; } }
@Override public N getName() { if ( column.isSetName() ) { if ( null == cachedName) { cachedName = nameSerializer.fromByteBuffer(column.name.duplicate()); } return cachedName; } else { return null; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_ttl = true && (isSetTtl()); builder.append(present_ttl); if (present_ttl) builder.append(ttl); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_ttl = true && (isSetTtl()); builder.append(present_ttl); if (present_ttl) builder.append(ttl); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_ttl = true && (isSetTtl()); builder.append(present_ttl); if (present_ttl) builder.append(ttl); return builder.toHashCode(); }
/** * Convenience method to get the name buffer for the specified column and * decompose it into the name and timestamp. */ public static Pair<byte[], Long> decomposeName(Column column) { ByteBuffer nameBuffer; if (column.isSetName()) { nameBuffer = column.bufferForName(); } else { // the column buffer has not yet been set/cached // so we must fallback on the slowpath and force // the transform to bytes and wrap ourselves nameBuffer = ByteBuffer.wrap(column.getName()); } return decompose(nameBuffer); }
/** 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 NAME: return isSetName(); case VALUE: return isSetValue(); case TIMESTAMP: return isSetTimestamp(); case TTL: return isSetTtl(); } 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 NAME: return isSetName(); case VALUE: return isSetValue(); case TIMESTAMP: return isSetTimestamp(); case TTL: return isSetTtl(); } 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 NAME: return isSetName(); case VALUE: return isSetValue(); case TIMESTAMP: return isSetTimestamp(); case TTL: return isSetTtl(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public Column(Column other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = org.apache.thrift.TBaseHelper.copyBinary(other.name); ; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } this.timestamp = other.timestamp; this.ttl = other.ttl; }
/** * Performs a deep copy on <i>other</i>. */ public Column(Column other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = org.apache.thrift.TBaseHelper.copyBinary(other.name); ; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } this.timestamp = other.timestamp; this.ttl = other.ttl; }
/** * Performs a deep copy on <i>other</i>. */ public Column(Column other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = org.apache.thrift.TBaseHelper.copyBinary(other.name); ; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } this.timestamp = other.timestamp; this.ttl = other.ttl; }