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
public abstract class SingleResultNode extends ResultNode
- Author:
- baldersheim
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description SingleResultNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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
-
-
-
-
Method Detail
-
add
public abstract void add(ResultNode rhs)
In-place addition of this result with another.- Parameters:
rhs
- The result to add to this.
-
min
public abstract void min(ResultNode rhs)
Swaps the numerical value of this node with the smaller of this and the other.- Parameters:
rhs
- The other result to evaluate.
-
max
public abstract void max(ResultNode rhs)
Swaps the numerical value of this node with the larger of this and the other.- Parameters:
rhs
- The other result to evaluate.
-
getValue
public abstract Object getValue()
Return a java native, either String, Double or Long, depending on the underlying container.- Returns:
- The underlying numeric value.
-
-