Package com.yahoo.document
Class ExtendedStringField
- java.lang.Object
-
- com.yahoo.vespa.objects.FieldBase
-
- com.yahoo.document.Field
-
- com.yahoo.document.ExtendedField
-
- com.yahoo.document.ExtendedStringField
-
- All Implemented Interfaces:
FieldSet
,Serializable
,Comparable
public class ExtendedStringField extends ExtendedField
This adds an Extractor to the ExtendedField that can be used to get access the backed spantrees used in the concrete document types.- Author:
- baldersheim
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ExtendedStringField.ExtractSpanTrees
-
Nested classes/interfaces inherited from class com.yahoo.document.ExtendedField
ExtendedField.Extract
-
-
Constructor Summary
Constructors Constructor Description ExtendedStringField(String name, DataType type, ExtendedField.Extract extract, ExtendedStringField.ExtractSpanTrees extractSpanTrees)
-
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
-
ExtendedStringField
public ExtendedStringField(String name, DataType type, ExtendedField.Extract extract, ExtendedStringField.ExtractSpanTrees extractSpanTrees)
-
-
Method Detail
-
getFieldValue
public FieldValue getFieldValue(StructuredFieldValue doc)
- Overrides:
getFieldValue
in classExtendedField
-
setFieldValue
public FieldValue setFieldValue(StructuredFieldValue doc, FieldValue fv)
- Overrides:
setFieldValue
in classExtendedField
-
-