Package net.hydromatic.morel.ast
Class Core.Group
- 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.Group
-
- Enclosing class:
- Core
public static class Core.Group extends Core.FromStep
Agroupclause in afromexpression.
-
-
Field Summary
Fields Modifier and Type Field Description SortedMap<Core.IdPat,Core.Aggregate>aggregatesSortedMap<Core.IdPat,Core.Exp>groupExps-
Fields inherited from class net.hydromatic.morel.ast.Core.FromStep
bindings
-
-
Constructor Summary
Constructors Constructor Description Group(com.google.common.collect.ImmutableList<Binding> bindings, com.google.common.collect.ImmutableSortedMap<Core.IdPat,Core.Exp> groupExps, com.google.common.collect.ImmutableSortedMap<Core.IdPat,Core.Aggregate> aggregates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Core.Groupaccept(Shuttle shuttle)Accepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidaccept(Visitor visitor)Accepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.Core.Groupcopy(SortedMap<Core.IdPat,Core.Exp> groupExps, SortedMap<Core.IdPat,Core.Aggregate> aggregates)protected AstWriterunparse(AstWriter w, Core.From from, int ordinal, int left, int right)-
Methods inherited from class net.hydromatic.morel.ast.Core.FromStep
unparse
-
-
-
-
Field Detail
-
groupExps
public final SortedMap<Core.IdPat,Core.Exp> groupExps
-
aggregates
public final SortedMap<Core.IdPat,Core.Aggregate> aggregates
-
-
Constructor Detail
-
Group
Group(com.google.common.collect.ImmutableList<Binding> bindings, com.google.common.collect.ImmutableSortedMap<Core.IdPat,Core.Exp> groupExps, com.google.common.collect.ImmutableSortedMap<Core.IdPat,Core.Aggregate> aggregates)
-
-
Method Detail
-
accept
public Core.Group accept(Shuttle shuttle)
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
public void accept(Visitor visitor)
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
protected AstWriter unparse(AstWriter w, Core.From from, int ordinal, int left, int right)
- Specified by:
unparsein classCore.FromStep
-
copy
public Core.Group copy(SortedMap<Core.IdPat,Core.Exp> groupExps, SortedMap<Core.IdPat,Core.Aggregate> aggregates)
-
-