Package com.yahoo.searchlib.expression
Class NullResultNode
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ResultNode
com.yahoo.searchlib.expression.NullResultNode
- All Implemented Interfaces:
Cloneable,Comparable<ResultNode>
This result holds nothing.
- Author:
- baldersheim, Simon Thoresen Hult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetFloat()Returns the float representation of this result.longReturns the integer representation of this result.byte[]getRaw()Returns the raw byte array representation of this result.Returns the string representation of this result.protected intonCmp(ResultNode rhs) This method must be implemented by all subclasses of this to allow ordering of results.protected intvoidset(ResultNode rhs) This method must be implemented by all subclasses of this to allow new results to be calculated.voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.ResultNode
compareTo, equals, negateMethods 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, toStringMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
NullResultNode
public NullResultNode()
-
-
Method Details
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classResultNode
-
getInteger
public long getInteger()Description copied from class:ResultNodeReturns the integer representation of this result.- Specified by:
getIntegerin classResultNode- Returns:
- The value of this.
-
getFloat
public double getFloat()Description copied from class:ResultNodeReturns the float representation of this result.- Specified by:
getFloatin classResultNode- Returns:
- The value of this.
-
getString
Description copied from class:ResultNodeReturns the string representation of this result.- Specified by:
getStringin classResultNode- Returns:
- The value of this.
-
getRaw
public byte[] getRaw()Description copied from class:ResultNodeReturns the raw byte array representation of this result.- Specified by:
getRawin classResultNode- Returns:
- The value of this.
-
onCmp
Description copied from class:ResultNodeThis method must be implemented by all subclasses of this to allow ordering of results. This method is used by theCloneableimplementation.- Specified by:
onCmpin classResultNode- Parameters:
rhs- The other node to compare with.- Returns:
- Comparable result.
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classcom.yahoo.vespa.objects.Identifiable
-
set
Description copied from class:ResultNodeThis method must be implemented by all subclasses of this to allow new results to be calculated.- Specified by:
setin classResultNode- Parameters:
rhs- The node to get the result from.
-