Class Collect

    • Field Detail

      • fieldName

        protected final java.lang.String fieldName
    • Constructor Detail

      • Collect

        public Collect​(RelOptCluster cluster,
                       RelTraitSet traitSet,
                       RelNode child,
                       java.lang.String fieldName)
        Creates a Collect.
        Parameters:
        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,
                                  java.util.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
        Overrides:
        copy in class AbstractRelNode
        Parameters:
        traitSet - Trait set
        inputs - Inputs
        Returns:
        Copy of this relational expression, substituting traits and inputs
      • getFieldName

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

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