예제 #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;
    }
  }
예제 #2
0
 public SuperColumn setName(byte[] name) {
   setName(ByteBuffer.wrap(name));
   return this;
 }
예제 #3
0
 public byte[] getName() {
   setName(TBaseHelper.rightSize(name));
   return name.array();
 }