Class OProjectionItem

java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OProjectionItem
All Implemented Interfaces:
Node

public class OProjectionItem extends SimpleNode
  • Field Details

    • exclude

      protected boolean exclude
    • all

      protected boolean all
    • alias

      protected OIdentifier alias
    • expression

      protected OExpression expression
    • aggregate

      protected Boolean aggregate
    • nestedProjection

      protected ONestedProjection nestedProjection
  • Constructor Details

  • Method Details

    • isAll

      public boolean isAll()
    • setAll

      public void setAll(boolean all)
    • getAlias

      public OIdentifier getAlias()
    • setAlias

      public void setAlias(OIdentifier alias)
    • getExpression

      public OExpression getExpression()
    • setExpression

      public void setExpression(OExpression expression)
    • toString

      public void toString(Map<Object,Object> params, StringBuilder builder)
      Specified by:
      toString in class SimpleNode
    • isSelf

      public boolean isSelf()
    • toGenericStatement

      public void toGenericStatement(StringBuilder builder)
      Specified by:
      toGenericStatement in class SimpleNode
    • convert

      public static Object convert(Object value, OCommandContext context)
    • execute

      public Object execute(OResult iCurrentRecord, OCommandContext ctx)
    • 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 OIdentifier getProjectionAlias()
    • isExpand

      public boolean isExpand()
    • getExpandContent

      public OProjectionItem getExpandContent()
    • isAggregate

      public boolean isAggregate()
    • splitForAggregation

      public OProjectionItem splitForAggregation(AggregateProjectionSplit aggregateSplit, OCommandContext ctx)
      INTERNAL USE ONLY this has to be invoked ONLY if the item is aggregate!!!
      Parameters:
      aggregateSplit -
    • getAggregationContext

      public AggregationContext getAggregationContext(OCommandContext ctx)
    • copy

      public OProjectionItem copy()
      Overrides:
      copy in class SimpleNode
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public void extractSubQueries(SubQueryCollector collector)
    • refersToParent

      public boolean refersToParent()
    • serialize

      public OResult serialize()
    • deserialize

      public void deserialize(OResult fromResult)
    • setNestedProjection

      public void setNestedProjection(ONestedProjection nestedProjection)
    • isCacheable

      public boolean isCacheable()