Пример #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();
 }