public class LongPredefined extends PredefinedFunction
GroupingExpression
for expressions that evaluate to a
long.Constructor and Description |
---|
LongPredefined(GroupingExpression exp,
LongBucket arg1,
LongBucket... argN)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
LongPredefined |
copy()
Returns a deep copy of this
|
LongBucket |
getBucket(int i)
Returns the bucket at the given index.
|
static LongPredefined |
newInstance(GroupingExpression exp,
List<LongBucket> args)
Constructs a new instance of this class from a list of arguments.
|
getNumBuckets
args, asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
asImage, asString, getLevel, getLevelOrNull, setLabel
getImage, getLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public LongPredefined(GroupingExpression exp, LongBucket arg1, LongBucket... argN)
exp
- The expression to evaluate, must evaluate to a long.arg1
- The compulsory bucket.argN
- The optional buckets.public LongPredefined copy()
GroupingExpression
copy
in class GroupingExpression
public LongBucket getBucket(int i)
PredefinedFunction
getBucket
in class PredefinedFunction
i
- The index of the bucket to return.public static LongPredefined newInstance(GroupingExpression exp, List<LongBucket> args)
exp
- The expression to evaluate, must evaluate to a long.args
- The buckets to pass to the constructor.IllegalArgumentException
- Thrown if the list of buckets is empty.Copyright © 2018. All rights reserved.