use of com.yahoo.searchlib.expression.ExpressionNode in project vespa by vespa-engine.
the class Group method onSerialize.
@Override
protected void onSerialize(Serializer buf) {
super.onSerialize(buf);
serializeOptional(buf, id);
buf.putDouble(null, rank);
int sz = orderByIdx.size();
buf.putInt(null, sz);
for (Integer index : orderByIdx) {
buf.putInt(null, index);
}
int numResults = aggregationResults.size();
buf.putInt(null, numResults);
for (AggregationResult a : aggregationResults) {
serializeOptional(buf, a);
}
int numExpressionResults = orderByExp.size();
buf.putInt(null, numExpressionResults);
for (ExpressionNode e : orderByExp) {
serializeOptional(buf, e);
}
int numGroups = children.size();
buf.putInt(null, numGroups);
for (Group g : children) {
g.serializeWithId(buf);
}
buf.putInt(null, tag);
}
Aggregations