Class ProjectionItem

  • All Implemented Interfaces:
    Node

    public class ProjectionItem
    extends SimpleNode
    • Field Detail

      • exclude

        protected boolean exclude
      • all

        protected boolean all
      • aggregate

        protected Boolean aggregate
    • Constructor Detail

      • ProjectionItem

        public ProjectionItem​(int id)
      • ProjectionItem

        public ProjectionItem​(SqlParser p,
                              int id)
    • Method Detail

      • isAll

        public boolean isAll()
      • setAll

        public void setAll​(boolean all)
      • setAlias

        public void setAlias​(Identifier alias)
      • getExpression

        public Expression getExpression()
      • setExpression

        public void setExpression​(Expression expression)
      • getProjectionAliasAsString

        public String getProjectionAliasAsString()
        returns the final alias for this projection item (the explicit alias, if defined, or the default alias)
        Returns:
        the final alias for this projection item
      • getProjectionAlias

        public Identifier getProjectionAlias()
      • isExpand

        public boolean isExpand()
      • isAggregate

        public boolean isAggregate()
      • splitForAggregation

        public ProjectionItem splitForAggregation​(AggregateProjectionSplit aggregateSplit)
        INTERNAL USE ONLY this has to be invoked ONLY if the item is aggregate!!!
        Parameters:
        aggregateSplit -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • refersToParent

        public boolean refersToParent()
      • serialize

        public Result serialize()
      • deserialize

        public void deserialize​(Result fromResult)
      • setNestedProjection

        public void setNestedProjection​(NestedProjection nestedProjection)
      • isCacheable

        public boolean isCacheable()