Class LogicalSortExpression
- java.lang.Object
-
- com.apple.foundationdb.record.query.plan.temp.expressions.LogicalSortExpression
-
- All Implemented Interfaces:
Bindable
,RelationalExpressionWithChildren
,RelationalExpression
@API(EXPERIMENTAL) public class LogicalSortExpression extends Object implements RelationalExpressionWithChildren
A relational planner expression that represents an unimplemented sort on the records produced by its inner relational planner expression.
-
-
Constructor Summary
Constructors Constructor Description LogicalSortExpression(List<Element> sort, boolean reverse, ExpressionRef<RelationalExpression> inner)
LogicalSortExpression(List<Element> sort, boolean reverse, RelationalExpression inner)
LogicalSortExpression(List<Element> grouping, List<Element> sort, boolean reverse, ExpressionRef<RelationalExpression> inner)
LogicalSortExpression(List<Element> grouping, List<Element> sort, boolean reverse, RelationalExpression inner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
equalsWithoutChildren(RelationalExpression otherExpression)
List<Element>
getGrouping()
List<? extends Quantifier>
getQuantifiers()
Return an iterator of references to the children of this planner expression.int
getRelationalChildCount()
List<Element>
getSort()
List<Element>
getSortPrefix()
List<Element>
getSortSuffix()
int
hashCode()
boolean
isReverse()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.apple.foundationdb.record.query.plan.temp.RelationalExpression
acceptPropertyVisitor, bindTo, show
-
-
-
-
Constructor Detail
-
LogicalSortExpression
public LogicalSortExpression(@Nonnull List<Element> sort, boolean reverse, @Nonnull RelationalExpression inner)
-
LogicalSortExpression
public LogicalSortExpression(@Nonnull List<Element> grouping, @Nonnull List<Element> sort, boolean reverse, @Nonnull RelationalExpression inner)
-
LogicalSortExpression
public LogicalSortExpression(@Nonnull List<Element> sort, boolean reverse, @Nonnull ExpressionRef<RelationalExpression> inner)
-
LogicalSortExpression
public LogicalSortExpression(@Nonnull List<Element> grouping, @Nonnull List<Element> sort, boolean reverse, @Nonnull ExpressionRef<RelationalExpression> inner)
-
-
Method Detail
-
getQuantifiers
@Nonnull public List<? extends Quantifier> getQuantifiers()
Description copied from interface:RelationalExpression
Return an iterator of references to the children of this planner expression. The iterators returned by different calls are guaranteed to be independent (i.e., advancing one will not advance another). However, they might point to the same object, as whenCollections.emptyIterator()
is returned. The returned iterator should be treated as an immutable object and may throw an exception ifIterator.remove()
is called. The iterator must return its elements in a consistent order.- Specified by:
getQuantifiers
in interfaceRelationalExpression
- Returns:
- an iterator of references to the children of this planner expression
-
getRelationalChildCount
public int getRelationalChildCount()
- Specified by:
getRelationalChildCount
in interfaceRelationalExpressionWithChildren
-
isReverse
public boolean isReverse()
-
equalsWithoutChildren
@API(EXPERIMENTAL) public boolean equalsWithoutChildren(@Nonnull RelationalExpression otherExpression)
- Specified by:
equalsWithoutChildren
in interfaceRelationalExpression
-
-