Class ProjectionsContext
- java.lang.Object
-
- org.apache.shardingsphere.infra.binder.segment.select.projection.ProjectionsContext
-
public final class ProjectionsContext extends Object
Projections context.
-
-
Constructor Summary
Constructors Constructor Description ProjectionsContext(int startIndex, int stopIndex, boolean distinctRow, Collection<Projection> projections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>findAlias(String projectionName)Find alias.Optional<Integer>findProjectionIndex(String projectionName)Find projection index.List<AggregationProjection>getAggregationProjections()Get aggregation projections.booleanisUnqualifiedShorthandProjection()Judge is unqualified shorthand projection or not.
-
-
-
Constructor Detail
-
ProjectionsContext
public ProjectionsContext(int startIndex, int stopIndex, boolean distinctRow, Collection<Projection> projections)
-
-
Method Detail
-
isUnqualifiedShorthandProjection
public boolean isUnqualifiedShorthandProjection()
Judge is unqualified shorthand projection or not.- Returns:
- is unqualified shorthand projection or not
-
findAlias
public Optional<String> findAlias(String projectionName)
Find alias.- Parameters:
projectionName- projection name- Returns:
- projection alias
-
findProjectionIndex
public Optional<Integer> findProjectionIndex(String projectionName)
Find projection index.- Parameters:
projectionName- projection name- Returns:
- projection index
-
getAggregationProjections
public List<AggregationProjection> getAggregationProjections()
Get aggregation projections.- Returns:
- aggregation projections
-
-