Package com.yahoo.searchlib.aggregation
Class GroupingLevel
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.aggregation.GroupingLevel
- All Implemented Interfaces:
Cloneable
public class GroupingLevel
extends com.yahoo.vespa.objects.Identifiable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturns the expression used to classify hits into groups.Returns the prototype to use when creating groups at this level.longReturns the maximum number of groups allowed at this level.longReturns the precision (i.e number of groups) returned up from this level.inthashCode()booleanTell if ordering will need results collected in children.protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) Sets the expression used to classify hits into groups.setGroupPrototype(Group group) Sets the prototype to use when creating groups at this level.setMaxGroups(long max) Sets the maximum number of groups allowed at this level.setPrecision(long precision) Sets the precision (i.e number of groups) returned up from this level.voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
GroupingLevel
public GroupingLevel()
-
-
Method Details
-
getPrecision
public long getPrecision()Returns the precision (i.e number of groups) returned up from this level. -
getMaxGroups
public long getMaxGroups()Returns the maximum number of groups allowed at this level. -
setMaxGroups
Sets the maximum number of groups allowed at this level. -
setPrecision
Sets the precision (i.e number of groups) returned up from this level.- Parameters:
precision- the precision to set- Returns:
- this, to allow chaining
-
getExpression
Returns the expression used to classify hits into groups. -
setExpression
Sets the expression used to classify hits into groups. -
setGroupPrototype
Sets the prototype to use when creating groups at this level.
- Parameters:
group- The group prototype.- Returns:
- This, to allow chaining.
-
getGroupPrototype
Returns the prototype to use when creating groups at this level.
- Returns:
- The group prototype.
-
needResultCollection
public boolean needResultCollection()Tell if ordering will need results collected in children.
- Returns:
- If deeper resultcollection is needed.
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classcom.yahoo.vespa.objects.Identifiable
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classcom.yahoo.vespa.objects.Identifiable
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classcom.yahoo.vespa.objects.Identifiable
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.yahoo.vespa.objects.Identifiable
-
equals
- Overrides:
equalsin classcom.yahoo.vespa.objects.Identifiable
-
clone
- Overrides:
clonein classcom.yahoo.vespa.objects.Identifiable
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classcom.yahoo.vespa.objects.Identifiable
-