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 EDGE_TYPES:
      return this.edge_types;
    case EDGE_DIRECTION:
      return this.edge_direction;
    case DEDUP:
      return this.dedup;
    case STAT_PROPS:
      return this.stat_props;
    case VERTEX_PROPS:
      return this.vertex_props;
    case EDGE_PROPS:
      return this.edge_props;
    case EXPRESSIONS:
      return this.expressions;
    case ORDER_BY:
      return this.order_by;
    case RANDOM:
      return this.random;
    case LIMIT:
      return this.limit;
    case FILTER:
      return this.filter;
    case TAG_FILTER:
      return this.tag_filter;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}