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

      case COLUMNS:
        if (value == null) {
          unsetColumns();
        } else {
          setColumns((List<Column>) value);
        }
        break;
    }
  }
Example #2
0
 public SuperColumn setName(byte[] name) {
   setName(ByteBuffer.wrap(name));
   return this;
 }
Example #3
0
 public byte[] getName() {
   setName(TBaseHelper.rightSize(name));
   return name.array();
 }