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(String label,
Integer level,
GroupingExpression exp,
List<? extends BucketValue> args) |
Modifier and Type | Method and Description |
---|---|
BucketValue |
getBucket(int i)
Returns the bucket at the given index.
|
int |
getNumBuckets()
Returns the number of buckets to divide the result into.
|
args, asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
asImage, asString, copy, getLevel, getLevelOrNull, setLabel
getImage, getLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected PredefinedFunction(String label, Integer level, 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.Copyright © 2018. All rights reserved.