public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { setId((Integer) value); } break; case NAME: if (value == null) { unsetName(); } else { setName((String) value); } break; case PATH: if (value == null) { unsetPath(); } else { setPath((String) value); } break; case COLUMNS: if (value == null) { unsetColumns(); } else { setColumns((Integer) value); } break; case METADATA: if (value == null) { unsetMetadata(); } else { setMetadata((ByteBuffer) value); } break; } }
public byte[] getMetadata() { setMetadata(org.apache.thrift.TBaseHelper.rightSize(metadata)); return metadata == null ? null : metadata.array(); }
public ClientRawTableInfo setMetadata(byte[] metadata) { setMetadata(metadata == null ? (ByteBuffer) null : ByteBuffer.wrap(metadata)); return this; }
public void updateMetadata(ByteBuffer metadata) throws IOException { TACHYON_CLIENT.updateRawTableMetadata(CLIENT_RAW_TABLE_INFO.getId(), metadata); CLIENT_RAW_TABLE_INFO.setMetadata(CommonUtils.cloneByteBuffer(metadata)); }