Package com.yahoo.vespa.indexinglanguage
Class IdentityFieldPathUpdateFieldValues
java.lang.Object
com.yahoo.vespa.indexinglanguage.IdentityFieldPathUpdateFieldValues
- All Implemented Interfaces:
FieldTypes,FieldValues,UpdateFieldValues
No-op update adapter which simply passes through the input update unchanged.
I.e. getOutput() will return a DocumentUpdate containing only the FieldPathUpdate
the IdentityFieldPathUpdateAdapter was created with. All other applicable calls are
forwarded to the provided DocumentAdapter instance.
This removes the need for a potentially lossy round-trip of update -> synthetic document -> update.
-
Constructor Summary
ConstructorsConstructorDescriptionIdentityFieldPathUpdateFieldValues(com.yahoo.document.fieldpathupdate.FieldPathUpdate update, DocumentFieldValues fwdAdapter) -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(Expression expression) com.yahoo.document.DataTypegetFieldType(String fieldName, Expression exp) com.yahoo.document.datatypes.FieldValuegetInputValue(com.yahoo.document.FieldPath fieldPath) com.yahoo.document.datatypes.FieldValuegetInputValue(String fieldName) com.yahoo.document.DocumentUpdatesetOutputValue(String fieldName, com.yahoo.document.datatypes.FieldValue fieldValue, Expression exp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.vespa.indexinglanguage.UpdateFieldValues
isComplete
-
Constructor Details
-
IdentityFieldPathUpdateFieldValues
public IdentityFieldPathUpdateFieldValues(com.yahoo.document.fieldpathupdate.FieldPathUpdate update, DocumentFieldValues fwdAdapter)
-
-
Method Details
-
getOutput
public com.yahoo.document.DocumentUpdate getOutput()- Specified by:
getOutputin interfaceUpdateFieldValues
-
getExpression
- Specified by:
getExpressionin interfaceUpdateFieldValues
-
getInputValue
- Specified by:
getInputValuein interfaceFieldValues
-
getInputValue
public com.yahoo.document.datatypes.FieldValue getInputValue(com.yahoo.document.FieldPath fieldPath) - Specified by:
getInputValuein interfaceFieldValues
-
setOutputValue
public FieldValues setOutputValue(String fieldName, com.yahoo.document.datatypes.FieldValue fieldValue, Expression exp) - Specified by:
setOutputValuein interfaceFieldValues
-
getFieldType
- Specified by:
getFieldTypein interfaceFieldTypes
-