use of com.yahoo.searchlib.expression.IntegerBucketResultNodeVector in project vespa by vespa-engine.
the class ExpressionConverter method toBucketList.
private ResultNodeVector toBucketList(PredefinedFunction fnc) {
ResultNodeVector ret = null;
for (int i = 0, len = fnc.getNumBuckets(); i < len; ++i) {
BucketResultNode bucket = toBucket(fnc.getBucket(i));
if (ret == null) {
if (bucket instanceof FloatBucketResultNode) {
ret = new FloatBucketResultNodeVector();
} else if (bucket instanceof IntegerBucketResultNode) {
ret = new IntegerBucketResultNodeVector();
} else if (bucket instanceof RawBucketResultNode) {
ret = new RawBucketResultNodeVector();
} else {
ret = new StringBucketResultNodeVector();
}
}
ret.add(bucket);
}
return ret;
}
Aggregations