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

      case COLUMNS:
        if (value == null) {
          unsetColumns();
        } else {
          setColumns((List<TColumnIncrement>) value);
        }
        break;

      case ATTRIBUTES:
        if (value == null) {
          unsetAttributes();
        } else {
          setAttributes((Map<ByteBuffer, ByteBuffer>) value);
        }
        break;

      case DURABILITY:
        if (value == null) {
          unsetDurability();
        } else {
          setDurability((TDurability) value);
        }
        break;

      case CELL_VISIBILITY:
        if (value == null) {
          unsetCellVisibility();
        } else {
          setCellVisibility((TCellVisibility) value);
        }
        break;
    }
  }
Пример #2
0
 public TIncrement 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();
 }