Package com.yahoo.searchlib.aggregation
Class MinAggregationResult
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ExpressionNode
com.yahoo.searchlib.aggregation.AggregationResult
com.yahoo.searchlib.aggregation.MinAggregationResult
- All Implemented Interfaces:
Serializable
,Cloneable
This is an aggregated result holding the minimum result of the matching hits.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs an empty result node.Constructs an instance of this class with given min value. -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected boolean
final SingleResultNode
getMin()
Returns the minimum value found in all matching hits.getRank()
Returns a value that can be used for ranking.protected void
onDeserialize
(com.yahoo.vespa.objects.Deserializer buf) protected int
protected void
onMerge
(AggregationResult result) Mmust be implemented by subclasses to support merge.protected void
onSerialize
(com.yahoo.vespa.objects.Serializer buf) final MinAggregationResult
setMin
(SingleResultNode min) Sets the minimum value found in all matching hits.void
visitMembers
(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.aggregation.AggregationResult
equalsExpression, getExpression, getResult, getTag, merge, onExecute, onPrepare, postMerge, setExpression, setTag
Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepare
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, hashCode, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
MinAggregationResult
public MinAggregationResult()Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set. -
MinAggregationResult
Constructs an instance of this class with given min value.- Parameters:
min
- The initial minimum to set.
-
-
Method Details
-
getMin
Returns the minimum value found in all matching hits.- Returns:
- The value.
-
setMin
Sets the minimum value found in all matching hits.- Parameters:
min
- The value.- Returns:
- This, to allow chaining.
-
getRank
Description copied from class:AggregationResult
Returns a value that can be used for ranking.- Specified by:
getRank
in classAggregationResult
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassId
in classAggregationResult
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerialize
in classAggregationResult
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserialize
in classAggregationResult
-
onMerge
Description copied from class:AggregationResult
Mmust be implemented by subclasses to support merge. It is called as theAggregationResult.merge(AggregationResult)
method is invoked.- Specified by:
onMerge
in classAggregationResult
- Parameters:
result
- the result to merge with
-
equalsAggregation
- Specified by:
equalsAggregation
in classAggregationResult
-
clone
- Overrides:
clone
in classAggregationResult
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembers
in classAggregationResult
-