getFieldValue method

dynamic getFieldValue(
  1. int fieldID
)
override

Get a field's value by fieldId. Primitive types will be wrapped in the appropriate "boxed" types.

Implementation

getFieldValue(int fieldID) {
  switch (fieldID) {
    case SPACE_NAME:
      return this.space_name;
    case PARTITION_NUM:
      return this.partition_num;
    case REPLICA_FACTOR:
      return this.replica_factor;
    case CHARSET_NAME:
      return this.charset_name;
    case COLLATE_NAME:
      return this.collate_name;
    case VID_TYPE:
      return this.vid_type;
    case ZONE_NAMES:
      return this.zone_names;
    case ISOLATION_LEVEL:
      return this.isolation_level;
    case COMMENT:
      return this.comment;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}