Package com.yahoo.searchlib.expression
Class DocumentFieldNode
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ExpressionNode
com.yahoo.searchlib.expression.DocumentAccessorNode
com.yahoo.searchlib.expression.DocumentFieldNode
- All Implemented Interfaces:
Serializable
,Cloneable
The node is a request to retrieve the content of a document field.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs an empty result node.DocumentFieldNode
(String fieldName) Constructs an instance of this class with given field name. -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected boolean
Returns the name of the field whose value to retrieve.Get the result of this expression.int
hashCode()
protected void
onDeserialize
(com.yahoo.vespa.objects.Deserializer buf) protected int
protected void
onSerialize
(com.yahoo.vespa.objects.Serializer buf) setDocumentFieldName
(String fieldName) Sets the name of the field whose value to retrieve.void
visitMembers
(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, onExecute, onPrepare, prepare
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, 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
-
DocumentFieldNode
public DocumentFieldNode()Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set. -
DocumentFieldNode
Constructs an instance of this class with given field name.- Parameters:
fieldName
- The field whose value to retrieve.
-
-
Method Details
-
getDocumentFieldName
Returns the name of the field whose value to retrieve.- Returns:
- The field name.
-
setDocumentFieldName
Sets the name of the field whose value to retrieve.- Parameters:
fieldName
- The field name to set.- Returns:
- This, to allow chaining.
-
getResult
Description copied from class:ExpressionNode
Get the result of this expression.- Specified by:
getResult
in classExpressionNode
- Returns:
- the result as a ResultNode.
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassId
in classDocumentAccessorNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerialize
in classExpressionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserialize
in classExpressionNode
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.yahoo.vespa.objects.Identifiable
-
equalsExpression
- Specified by:
equalsExpression
in classExpressionNode
-
clone
- Overrides:
clone
in classExpressionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembers
in classExpressionNode
-