@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value, long timestamp) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(timestamp); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }
@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(connectionManager.createClock()); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }
@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); boolean present_column = true && (isSetColumn()); builder.append(present_column); if (present_column) builder.append(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(); case COLUMN: return isSetColumn(); } 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); boolean present_column = true && (isSetColumn()); builder.append(present_column); if (present_column) builder.append(column); return builder.toHashCode(); }
@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); boolean present_column = true && (isSetColumn()); builder.append(present_column); if (present_column) builder.append(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(); case COLUMN: return isSetColumn(); } 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_FAMILY: return isSetColumn_family(); case SUPER_COLUMN: return isSetSuper_column(); case COLUMN: return isSetColumn(); } throw new IllegalStateException(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnPath 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(); } } if (struct.column != null) { if (struct.isSetColumn()) { oprot.writeFieldBegin(COLUMN_FIELD_DESC); oprot.writeBinary(struct.column); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnPath 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(); } } if (struct.column != null) { if (struct.isSetColumn()) { oprot.writeFieldBegin(COLUMN_FIELD_DESC); oprot.writeBinary(struct.column); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnPath 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); } if (struct.isSetColumn()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnPath 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); } if (struct.isSetColumn()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnPath 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); } if (struct.isSetColumn()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnPath(ColumnPath 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); ; } if (other.isSetColumn()) { this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); ; } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnPath(ColumnPath 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); ; } if (other.isSetColumn()) { this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); ; } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnPath(ColumnPath 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); ; } if (other.isSetColumn()) { this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); ; } }
@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(connectionManager.createClock()); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }
@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value, long timestamp) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(timestamp); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }
@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value, long timestamp) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(timestamp); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }
@Override public void insert(String key, ColumnPath columnPath, ByteBuffer value) throws HectorException { // valideColumnPath(columnPath); ColumnParent columnParent = new ColumnParent(columnPath.getColumn_family()); if (columnPath.isSetSuper_column()) { columnParent.setSuper_column(columnPath.getSuper_column()); } Column column = new Column(ByteBuffer.wrap(columnPath.getColumn())); column.setValue(value); column.setTimestamp(connectionManager.createClock()); insert(StringSerializer.get().toByteBuffer(key), columnParent, column); }