Class Collect

    • Field Detail

      • fieldName

        protected final String fieldName
    • Constructor Detail

      • Collect

        public Collect​(RelOptCluster cluster,
                       RelTraitSet traitSet,
                       RelNode child,
                       String fieldName)
        Creates a Collect.
        cluster - Cluster
        child - Child relational expression
        fieldName - Name of the sole output field
      • Collect

        public Collect​(RelInput input)
        Creates a Collect by parsing serialized output.
    • Method Detail

      • copy

        public final RelNode copy​(RelTraitSet traitSet,
                                  List<RelNode> inputs)
        Description copied from interface: RelNode
        Creates a copy of this relational expression, perhaps changing traits and inputs.

        Sub-classes with other important attributes are encouraged to create variants of this method with more parameters.

        Specified by:
        copy in interface RelNode
        copy in class AbstractRelNode
        traitSet - Trait set
        inputs - Inputs
        Copy of this relational expression, substituting traits and inputs
      • getFieldName

        public String getFieldName()
        Returns the name of the sole output field.
        name of the sole output field
      • deriveCollectRowType

        public static RelDataType deriveCollectRowType​(SingleRel rel,
                                                       String fieldName)
        Derives the output type of a collect relational expression.
        rel - relational expression
        fieldName - name of sole output field
        output type of a collect relational expression