示例#1
0
  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
      case ROW:
        if (value == null) {
          unsetRow();
        } else {
          setRow((ByteBuffer) value);
        }
        break;

      case COL_FAMILY:
        if (value == null) {
          unsetColFamily();
        } else {
          setColFamily((ByteBuffer) value);
        }
        break;

      case COL_QUALIFIER:
        if (value == null) {
          unsetColQualifier();
        } else {
          setColQualifier((ByteBuffer) value);
        }
        break;

      case COL_VISIBILITY:
        if (value == null) {
          unsetColVisibility();
        } else {
          setColVisibility((ByteBuffer) value);
        }
        break;

      case TIMESTAMP:
        if (value == null) {
          unsetTimestamp();
        } else {
          setTimestamp((Long) value);
        }
        break;
    }
  }
示例#2
0
 public TKey setRow(byte[] row) {
   setRow(row == null ? (ByteBuffer) null : ByteBuffer.wrap(row));
   return this;
 }
示例#3
0
 public byte[] getRow() {
   setRow(org.apache.thrift.TBaseHelper.rightSize(row));
   return row == null ? null : row.array();
 }