Package com.yahoo.document
Class ExtendedField
- java.lang.Object
-
- com.yahoo.vespa.objects.FieldBase
-
- com.yahoo.document.Field
-
- com.yahoo.document.ExtendedField
-
- All Implemented Interfaces:
FieldSet
,java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
ExtendedStringField
public class ExtendedField extends Field
This adds an Extractor to the Field that can be used to get access the backed value used in the concrete document types.- Author:
- baldersheim
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ExtendedField.Extract
-
Constructor Summary
Constructors Constructor Description ExtendedField(java.lang.String name, DataType type, ExtendedField.Extract extract)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValue
getFieldValue(StructuredFieldValue doc)
FieldValue
setFieldValue(StructuredFieldValue doc, FieldValue fv)
-
Methods inherited from class com.yahoo.document.Field
calculateIdV7, clone, compareTo, contains, equals, getDataType, getId, getId, hasForcedId, hashCode, isHeader, setDataType, setHeader, setId, toString
-
-
-
-
Constructor Detail
-
ExtendedField
public ExtendedField(java.lang.String name, DataType type, ExtendedField.Extract extract)
-
-
Method Detail
-
getFieldValue
public FieldValue getFieldValue(StructuredFieldValue doc)
-
setFieldValue
public FieldValue setFieldValue(StructuredFieldValue doc, FieldValue fv)
-
-