Uses of Class
com.yahoo.document.Field
Packages that use Field
Package
Description
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
Infrastructure for building Vespa documents and feed operations from JSON.
-
Uses of Field in com.yahoo.document
Subclasses of Field in com.yahoo.documentModifier and TypeClassDescriptionclassThis adds an Extractor to the Field that can be used to access the backed value used in the concrete document types.classThis adds an Extractor to the ExtendedField that can be used to get access the backed spantrees used in the concrete document types.Fields in com.yahoo.document with type parameters of type FieldMethods in com.yahoo.document that return FieldModifier and TypeMethodDescriptionAdds a new field to this document type and returns the new field objectBaseStructDataType.getField(int id) DocumentType.getField(int id) Gets the field matching a given name.StructDataType.getField(int id) abstract FieldStructuredDataType.getField(int id) Gets the field with the specified id.abstract FieldGets the field matching a given name.FieldPathEntry.getFieldRef()BaseStructDataType.removeField(String fieldName) DocumentType.removeField(String name) Removes an field from the DocumentType.Methods in com.yahoo.document that return types with arguments of type FieldModifier and TypeMethodDescriptionDocumentType.fieldIteratorThisTypeOnly()Returns an iterator over all fields in this documenttypeDocumentType.fieldSet()Returns an ordered set snapshot of all fields of this documenttype, except the fields of Document.DocumentType.fieldSetAll()This is identical toDocumentType.fieldSet()fieldSet}, but in addition extra hidden synthetic fields are returned.BaseStructDataType.getFields()DocumentType.getFields()All fields defined in the document and its parents This is for internal use UseDocumentType.fieldSet()instead orDocumentType.fieldSetAll()if you really want all fieldsStructDataType.getFields()abstract Collection<Field>StructuredDataType.getFields()StructDataType.getFieldsThisTypeOnly()Document.iterator()Methods in com.yahoo.document with parameters of type FieldModifier and TypeMethodDescriptionvoidvoidAdds an field that can be used with this document type.voidintvoidDocument.deserialize(Field field, FieldReader reader) protected voidDocument.doSetFieldValue(Field field, FieldValue value) static ObjectSimpleDocument.get(StructuredFieldValue struct, Field field) final ObjectDocumentUpdate.getFieldUpdate(Field field) Returns the update for a fieldDocument.getFieldValue(Field field) booleanstatic FieldPathEntryFieldPathEntry.newStructFieldEntry(Field fieldRef) Creates a new field path entry that references a struct field.static ObjectSimpleDocument.remove(StructuredFieldValue struct, Field field) final ObjectDocumentUpdate.removeFieldUpdate(Field field) Document.removeFieldValue(Field field) voidDocument.serialize(Field field, FieldWriter writer) static ObjectSimpleDocument.set(StructuredFieldValue struct, Field field, Object value) final ObjectConstructors in com.yahoo.document with parameters of type Field -
Uses of Field in com.yahoo.document.annotation
Methods in com.yahoo.document.annotation with parameters of type FieldModifier and TypeMethodDescriptionvoidAnnotationReference.deserialize(Field field, FieldReader reader) voidAnnotationReference.serialize(Field field, FieldWriter writer) -
Uses of Field in com.yahoo.document.datatypes
Methods in com.yahoo.document.datatypes that return FieldModifier and TypeMethodDescriptionabstract FieldReturns the named field object, or null if that field does not exist.Methods in com.yahoo.document.datatypes that return types with arguments of type FieldModifier and TypeMethodDescriptionStruct.getFields()Struct.iterator()abstract Iterator<Map.Entry<Field,FieldValue>> StructuredFieldValue.iterator()Methods in com.yahoo.document.datatypes with parameters of type FieldModifier and TypeMethodDescriptionvoidArray.deserialize(Field field, FieldReader reader) voidBoolFieldValue.deserialize(Field field, FieldReader reader) voidByteFieldValue.deserialize(Field field, FieldReader reader) voidDoubleFieldValue.deserialize(Field field, FieldReader reader) abstract voidFieldValue.deserialize(Field field, FieldReader reader) Read a field value from the specified readervoidFloat16FieldValue.deserialize(Field field, FieldReader reader) voidFloatFieldValue.deserialize(Field field, FieldReader reader) voidIntegerFieldValue.deserialize(Field field, FieldReader reader) voidLongFieldValue.deserialize(Field field, FieldReader reader) voidMapFieldValue.deserialize(Field field, FieldReader reader) voidPredicateFieldValue.deserialize(Field field, FieldReader reader) voidRaw.deserialize(Field field, FieldReader reader) voidReferenceFieldValue.deserialize(Field field, FieldReader reader) voidStringFieldValue.deserialize(Field field, FieldReader reader) voidStruct.deserialize(Field field, FieldReader reader) voidTensorFieldValue.deserialize(Field field, FieldReader reader) voidUriFieldValue.deserialize(Field field, FieldReader reader) voidWeightedSet.deserialize(Field field, FieldReader reader) protected voidStruct.doSetFieldValue(Field field, FieldValue value) protected abstract voidStructuredFieldValue.doSetFieldValue(Field field, FieldValue value) static <T> TStruct.getFieldValue(FieldValue struct, DataType structType, Field field, Class<T> fieldType) Struct.getFieldValue(Field field) abstract FieldValueStructuredFieldValue.getFieldValue(Field field) Returns the value of the given field.Struct.removeFieldValue(Field field) abstract FieldValueStructuredFieldValue.removeFieldValue(Field field) Removes and returns a field value.voidArray.serialize(Field field, FieldWriter writer) voidBoolFieldValue.serialize(Field field, FieldWriter writer) voidByteFieldValue.serialize(Field field, FieldWriter writer) voidDoubleFieldValue.serialize(Field field, FieldWriter writer) abstract voidFieldValue.serialize(Field field, FieldWriter writer) Write out field value to the specified writervoidFloat16FieldValue.serialize(Field field, FieldWriter writer) voidFloatFieldValue.serialize(Field field, FieldWriter writer) voidIntegerFieldValue.serialize(Field field, FieldWriter writer) voidLongFieldValue.serialize(Field field, FieldWriter writer) voidMapFieldValue.serialize(Field field, FieldWriter writer) voidPredicateFieldValue.serialize(Field field, FieldWriter writer) voidRaw.serialize(Field field, FieldWriter writer) voidReferenceFieldValue.serialize(Field field, FieldWriter writer) voidStringFieldValue.serialize(Field field, FieldWriter writer) voidStruct.serialize(Field field, FieldWriter writer) voidTensorFieldValue.serialize(Field field, FieldWriter writer) voidWeightedSet.serialize(Field field, FieldWriter writer) StructuredFieldValue.setFieldValue(Field field, FieldValue value) Sets the value of the given field.final FieldValueStructuredFieldValue.setFieldValue(Field field, Byte value) final FieldValueStructuredFieldValue.setFieldValue(Field field, Double value) final FieldValueStructuredFieldValue.setFieldValue(Field field, Integer value) final FieldValueStructuredFieldValue.setFieldValue(Field field, Long value) final FieldValueStructuredFieldValue.setFieldValue(Field field, String value) -
Uses of Field in com.yahoo.document.json
Fields in com.yahoo.document.json declared as FieldMethods in com.yahoo.document.json that return FieldConstructors in com.yahoo.document.json with parameters of type FieldModifierConstructorDescriptionJsonReaderException(DocumentId docId, Field field, Throwable cause) JsonReaderException(Field field, Throwable cause) -
Uses of Field in com.yahoo.document.json.readers
Methods in com.yahoo.document.json.readers with parameters of type FieldModifier and TypeMethodDescriptionstatic voidAddRemoveCreator.createAdds(TokenBuffer buffer, Field field, FieldUpdate update, boolean ignoreUndefinedFields) static ValueUpdateMapReader.createMapUpdate(TokenBuffer buffer, Field field, boolean ignoreUndefinedFields) static TensorModifyUpdateTensorModifyUpdateReader.createModifyUpdate(TokenBuffer buffer, Field field) static voidAddRemoveCreator.createRemoves(TokenBuffer buffer, Field field, FieldUpdate update, boolean ignoreUndefinedFields) static TensorAddUpdateTensorAddUpdateReader.createTensorAddUpdate(TokenBuffer buffer, Field field) static booleanTensorAddUpdateReader.isTensorField(Field field) -
Uses of Field in com.yahoo.document.update
Fields in com.yahoo.document.update declared as FieldMethods in com.yahoo.document.update that return FieldModifier and TypeMethodDescriptionFieldUpdate.getField()Returns the field that this field update applies toMethods in com.yahoo.document.update with parameters of type FieldModifier and TypeMethodDescriptionstatic FieldUpdateCreates a new, empty field update with no encapsulated value updates.static FieldUpdateFieldUpdate.createAdd(Field field, FieldValue value) Creates a new field update, with one encapsulated value update specifying an addition of a value to an array or a key to a weighted set (with default weight 1).static FieldUpdateFieldUpdate.createAdd(Field field, FieldValue key, Integer weight) Creates a new field update, with one encapsulated value update specifying an addition of a key (with a specified weight) to a weighted set.static FieldUpdateFieldUpdate.createAddAll(Field field, WeightedSet<? extends FieldValue> set) Creates a new field update, with encapsulated value updates, specifying an addition of all key/weight pairs in a weighted set to a weighted set.static FieldUpdateFieldUpdate.createAddAll(Field field, List<? extends FieldValue> values) Creates a new field update, with encapsulated value updates, specifying an addition of all values in a given list to an array.static FieldUpdateFieldUpdate.createAssign(Field field, FieldValue newValue) Creates a new field update, with one encapsulated value update, that assigns a new value, completely overwriting the previous value.static FieldUpdateFieldUpdate.createClear(Field field) Creates a new field update, with one encapsulated value update, that clears the value; see documentation for ClearValueUpdate to see behavior for the individual data types.static FieldUpdateFieldUpdate.createClearField(Field field) Creates a new field update that clears the field.static FieldUpdateFieldUpdate.createDecrement(Field field, FieldValue key, Number decrement) Creates a new field update, with one encapsulated value update that decrements a weight in a weighted set.static FieldUpdateFieldUpdate.createDecrement(Field field, Number decrement) Creates a new field update, with one encapsulated value update that decrements a value.static FieldUpdateFieldUpdate.createDivide(Field field, FieldValue key, Number divisor) Creates a new field update, with one encapsulated value update that divides a weight in a weighted set.static FieldUpdateFieldUpdate.createDivide(Field field, Number divisor) Creates a new field update, with one encapsulated value update that divides a value.static FieldUpdateFieldUpdate.createIncrement(Field field, FieldValue key, Number increment) Creates a new field update, with one encapsulated value update that increments a weight in a weighted set.static FieldUpdateFieldUpdate.createIncrement(Field field, Number increment) Creates a new field update, with one encapsulated value update that increments a value.static FieldUpdateFieldUpdate.createMap(Field field, FieldValue value, ValueUpdate update) Creates a new field update, with one encapsulated value update, which is able to map an update to a value to a subvalue in an array or a weighted set.static FieldUpdateFieldUpdate.createMultiply(Field field, FieldValue key, Number factor) Creates a new field update, with one encapsulated value update that multiplies a weight in a weighted set.static FieldUpdateFieldUpdate.createMultiply(Field field, Number factor) Creates a new field update, with one encapsulated value update that multiplies a value.static FieldUpdateFieldUpdate.createRemove(Field field, FieldValue value) Creates a new field update, with one encapsulated value update, specifying the removal of a value from an array or a key/weight from a weighted set.static FieldUpdateFieldUpdate.createRemoveAll(Field field, WeightedSet<? extends FieldValue> values) Creates a new field update, with encapsulated value updates, specifying the removal of all values in a given list from an array or weighted set.static FieldUpdateFieldUpdate.createRemoveAll(Field field, List<? extends FieldValue> values) Creates a new field update, with encapsulated value updates, specifying the removal of all values in a given list from an array or weighted set.voidSets the field this update applies to.