Package com.yahoo.searchlib.aggregation
Class StandardDeviationAggregationResult
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.StandardDeviationAggregationResult
- All Implemented Interfaces:
Serializable,Cloneable
- Author:
- bjorncs
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor used for deserialization.StandardDeviationAggregationResult(long count, double sum, double sumOfSquared) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleangetRank()Returns a value that can be used for ranking.doubleprotected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonMerge(AggregationResult obj) Mmust be implemented by subclasses to support merge.protected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.aggregation.AggregationResult
clone, equalsExpression, getExpression, getResult, getTag, merge, onExecute, onPrepare, postMerge, setExpression, setTagMethods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepareMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, hashCode, 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
-
StandardDeviationAggregationResult
public StandardDeviationAggregationResult()Constructor used for deserialization. Will be instantiated with a default sketch. -
StandardDeviationAggregationResult
public StandardDeviationAggregationResult(long count, double sum, double sumOfSquared)
-
-
Method Details
-
getStandardDeviation
public double getStandardDeviation() -
getRank
Description copied from class:AggregationResultReturns a value that can be used for ranking.- Specified by:
getRankin classAggregationResult
-
onMerge
Description copied from class:AggregationResultMmust be implemented by subclasses to support merge. It is called as theAggregationResult.merge(AggregationResult)method is invoked.- Specified by:
onMergein classAggregationResult- Parameters:
obj- the result to merge with
-
equalsAggregation
- Specified by:
equalsAggregationin classAggregationResult
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classAggregationResult
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classAggregationResult
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classAggregationResult
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classAggregationResult
-