Example #1
0
  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
      case FAMILY:
        if (value == null) {
          unsetFamily();
        } else {
          setFamily((ByteBuffer) value);
        }
        break;

      case QUALIFIER:
        if (value == null) {
          unsetQualifier();
        } else {
          setQualifier((ByteBuffer) value);
        }
        break;

      case VALUE:
        if (value == null) {
          unsetValue();
        } else {
          setValue((ByteBuffer) value);
        }
        break;

      case TIMESTAMP:
        if (value == null) {
          unsetTimestamp();
        } else {
          setTimestamp((Long) value);
        }
        break;
    }
  }
Example #2
0
 public TColumnValue setQualifier(byte[] qualifier) {
   setQualifier(qualifier == null ? (ByteBuffer) null : ByteBuffer.wrap(qualifier));
   return this;
 }
Example #3
0
 public byte[] getQualifier() {
   setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier));
   return qualifier == null ? null : qualifier.array();
 }