isSet method

bool isSet(
  1. int fieldID
)
override

Check if a field is currently set or unset, using the fieldId.

Implementation

bool isSet(int fieldID) {
  switch (fieldID) {
    case SPACE_NAME:
      return isSetSpace_name();
    case PARTITION_NUM:
      return isSetPartition_num();
    case REPLICA_FACTOR:
      return isSetReplica_factor();
    case CHARSET_NAME:
      return isSetCharset_name();
    case COLLATE_NAME:
      return isSetCollate_name();
    case VID_TYPE:
      return isSetVid_type();
    case ZONE_NAMES:
      return isSetZone_names();
    case ISOLATION_LEVEL:
      return isSetIsolation_level();
    case COMMENT:
      return isSetComment();
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}