Beispiel #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<TColumn>) value);
        }
        break;

      case TIMESTAMP:
        if (value == null) {
          unsetTimestamp();
        } else {
          setTimestamp((Long) value);
        }
        break;

      case TIME_RANGE:
        if (value == null) {
          unsetTimeRange();
        } else {
          setTimeRange((TTimeRange) value);
        }
        break;

      case MAX_VERSIONS:
        if (value == null) {
          unsetMaxVersions();
        } else {
          setMaxVersions((Integer) value);
        }
        break;
    }
  }
Beispiel #2
0
 public TGet setRow(byte[] row) {
   setRow(row == null ? (ByteBuffer) null : ByteBuffer.wrap(row));
   return this;
 }
Beispiel #3
0
 public byte[] getRow() {
   setRow(org.apache.thrift.TBaseHelper.rightSize(row));
   return row == null ? null : row.array();
 }