Package com.yahoo.searchlib.expression
Class SingleResultNode
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ResultNode
com.yahoo.searchlib.expression.SingleResultNode
- All Implemented Interfaces:
Cloneable
,Comparable<ResultNode>
- Direct Known Subclasses:
NumericResultNode
,RawResultNode
,StringResultNode
- Author:
- baldersheim
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
add
(ResultNode rhs) In-place addition of this result with another.abstract Object
getValue()
Return a java native, either String, Double or Long, depending on the underlying container.abstract void
max
(ResultNode rhs) Swaps the numerical value of this node with the larger of this and the other.abstract void
min
(ResultNode rhs) Swaps the numerical value of this node with the smaller of this and the other.Methods inherited from class com.yahoo.searchlib.expression.ResultNode
compareTo, equals, getFloat, getInteger, getRaw, getString, negate, onCmp, onGetClassId, set
Methods inherited from class com.yahoo.vespa.objects.Identifiable
clone, create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, hashCode, onDeserialize, onSerialize, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString, visitMembers
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
SingleResultNode
public SingleResultNode()
-
-
Method Details
-
add
In-place addition of this result with another.- Parameters:
rhs
- The result to add to this.
-
min
Swaps the numerical value of this node with the smaller of this and the other.- Parameters:
rhs
- The other result to evaluate.
-
max
Swaps the numerical value of this node with the larger of this and the other.- Parameters:
rhs
- The other result to evaluate.
-
getValue
Return a java native, either String, Double or Long, depending on the underlying container.- Returns:
- The underlying numeric value.
-