Interface MappingOperator

All Known Implementing Classes:
MappingOpConstant, MappingOpExtend, MappingOpExtract, MappingOpExtractJSON, MappingOpJoin, MappingOpProject, MappingOpUnion

public interface MappingOperator
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of sub-expressions that a mapping expression is expected to have if it has this operator as its root operator.
    void
     
  • Method Details

    • getExpectedNumberOfSubExpressions

      int getExpectedNumberOfSubExpressions()
      Returns the number of sub-expressions that a mapping expression is expected to have if it has this operator as its root operator. Hence, for nullary operators, this method returns 0; for unary operators, it returns 1; for binary operators, it returns 2. For n-ary operators (which can be applied to an arbitrary number of sub-expressions), this method returns Integer.MAX_VALUE.
    • visit

      void visit(MappingOperatorVisitor visitor)