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

      case PARTITIONS:
        if (value == null) {
          unset_partitions();
        } else {
          set_partitions((Map<Integer, PartitionMetadata>) value);
        }
        break;

      case DEFUNCT:
        if (value == null) {
          unset_defunct();
        } else {
          set_defunct((Boolean) value);
        }
        break;

      case CLOSED_AT:
        if (value == null) {
          unset_closed_at();
        } else {
          set_closed_at((Long) value);
        }
        break;
    }
  }
Пример #2
0
 public DomainVersionMetadata set_properties(byte[] properties) {
   set_properties(properties == null ? (ByteBuffer) null : ByteBuffer.wrap(properties));
   return this;
 }
Пример #3
0
 public byte[] get_properties() {
   set_properties(org.apache.thrift.TBaseHelper.rightSize(properties));
   return properties == null ? null : properties.array();
 }