Class AggregationProjectionSegment
- java.lang.Object
-
- org.apache.shardingsphere.sql.parser.sql.common.segment.dml.item.AggregationProjectionSegment
-
- All Implemented Interfaces:
ASTNode,ExpressionSegment,ProjectionSegment,AliasAvailable,SQLSegment
- Direct Known Subclasses:
AggregationDistinctProjectionSegment
public class AggregationProjectionSegment extends Object implements ProjectionSegment, AliasAvailable, ExpressionSegment
Aggregation projection segment.
-
-
Constructor Summary
Constructors Constructor Description AggregationProjectionSegment(int startIndex, int stopIndex, AggregationType type, String innerExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AliasSegment>getAlias()Get alias segment.Optional<String>getAliasName()Get alias name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.sql.parser.sql.common.segment.generic.AliasAvailable
setAlias
-
Methods inherited from interface org.apache.shardingsphere.sql.parser.sql.common.segment.SQLSegment
getStartIndex, getStopIndex
-
-
-
-
Constructor Detail
-
AggregationProjectionSegment
public AggregationProjectionSegment(int startIndex, int stopIndex, AggregationType type, String innerExpression)
-
-
Method Detail
-
getAliasName
public final Optional<String> getAliasName()
Description copied from interface:AliasAvailableGet alias name.- Specified by:
getAliasNamein interfaceAliasAvailable- Returns:
- alias name
-
getAlias
public final Optional<AliasSegment> getAlias()
Description copied from interface:AliasAvailableGet alias segment.- Specified by:
getAliasin interfaceAliasAvailable- Returns:
- alias segment
-
-