Package net.hydromatic.morel.ast
Class Core.Order
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Core.BaseNode
net.hydromatic.morel.ast.Core.FromStep
net.hydromatic.morel.ast.Core.Order
- Enclosing class:
Core
An
order clause in a from expression.-
Field Summary
FieldsFields inherited from class net.hydromatic.morel.ast.Core.FromStep
env -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.copy(Core.StepEnv env, Core.Exp exp) booleanisOrdered(boolean inputIsOrdered) Returns whether the output of this step is ordered, given whether the input is ordered.protected AstWriterMethods inherited from class net.hydromatic.morel.ast.Core.FromStep
unparse
-
Field Details
-
exp
-
-
Constructor Details
-
Order
Order(Core.StepEnv env, Core.Exp exp)
-
-
Method Details
-
isOrdered
public boolean isOrdered(boolean inputIsOrdered) Returns whether the output of this step is ordered, given whether the input is ordered.For example,
Core.WhereandCore.Yieldare ordered if and only if their input is ordered;Core.Orderis always ordered;Core.Groupis unordered.Orderis always ordered. If there are zero keys, or the keys not exhaustive, the order is not deterministic, but the ordering is still clearly part of the information in the value.- Overrides:
isOrderedin classCore.FromStep
-
accept
Description copied from class:AstNodeAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.- Specified by:
acceptin classCore.FromStep
-
accept
Description copied from class:AstNodeAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.- Overrides:
acceptin classCore.BaseNode
-
unparse
- Specified by:
unparsein classCore.FromStep
-
copy
-