Class FieldKeyExpression

  • All Implemented Interfaces:
    AtomKeyExpression, KeyExpression, KeyExpressionWithoutChildren, PlanHashable, QueryHashable

    @API(MAINTAINED)
    public class FieldKeyExpression
    extends BaseKeyExpression
    implements AtomKeyExpression, KeyExpressionWithoutChildren
    Take keys from a record field. If fieldName is a repeated field, then FanType.Concatenate turns all the field values into a single Key.Evaluated. If FanType.FanOut, there is one (singleton) Key.Evaluated for each repeated value. If this is evaluated on the null record, then it will the same value as if it were evaluated on a record where the field is either unset (in the case of scalar fields) or empty (in the case of repeated fields). In particular, if FanType.None, then this returns a single Key.Evaluated containing null; if FanType.FanOut, then this returns no Key.Evaluateds; and if FanType.Concatenate, then this returns a single Key.Evaluated containing the empty list.