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_ID:
      return this.space_id;
    case PARTS:
      return this.parts;
    case VERTEX_PROPS:
      return this.vertex_props;
    case EDGE_PROPS:
      return this.edge_props;
    case EXPRESSIONS:
      return this.expressions;
    case DEDUP:
      return this.dedup;
    case ORDER_BY:
      return this.order_by;
    case LIMIT:
      return this.limit;
    case FILTER:
      return this.filter;
    case COMMON:
      return this.common;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}