public abstract class PredefinedFunction extends FunctionNode
GroupingExpression
. It maps the input into one of the
given buckets by the result of the argument expression.Modifier | Constructor and Description |
---|---|
protected |
PredefinedFunction(GroupingExpression exp,
List<? extends BucketValue> args) |
Modifier and Type | Method and Description |
---|---|
private static List<GroupingExpression> |
asList(GroupingExpression exp,
List<? extends BucketValue> args) |
BucketValue |
getBucket(int i)
Returns the bucket at the given index.
|
int |
getNumBuckets()
Returns the number of buckets to divide the result into.
|
asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
asImage, asString, getLevel, setLabel
getLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected PredefinedFunction(GroupingExpression exp, List<? extends BucketValue> args)
public int getNumBuckets()
public BucketValue getBucket(int i)
i
- The index of the bucket to return.IndexOutOfBoundsException
- If the index is out of range.private static List<GroupingExpression> asList(GroupingExpression exp, List<? extends BucketValue> args)
Copyright © 2018. All rights reserved.