Uses of Class
com.yahoo.document.DataType
Packages that use DataType
Package
Description
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
-
Uses of DataType in com.yahoo.document
Subclasses of DataType in com.yahoo.documentModifier and TypeClassDescriptionclassclassclassclassA document definition is a list of fields.classRepresents a map type.classclassclassAReferenceDataTypespecifies a particular concrete document type that aReferenceFieldValueinstance binds to.classclassclassA DataType containing a tensor typeclassFields in com.yahoo.document declared as DataTypeMethods in com.yahoo.document that return DataTypeModifier and TypeMethodDescriptionDataType.clone()final DataTypeField.getDataType()Returns the datatype of the fieldMapDataType.getKeyType()CollectionDataType.getNestedType()DataType.getNestedType()Returns the nested type of this if it is a collection type, null otherwise.FieldPath.getResultingDataType()FieldPathEntry.getResultingDataType()MapDataType.getValueType()Methods in com.yahoo.document that return types with arguments of type DataTypeModifier and TypeMethodDescriptionDocumentTypeManager.getDataTypes()Returns a read only view of the registered data typesMethods in com.yahoo.document with parameters of type DataTypeModifier and TypeMethodDescriptionAdds a new field to this document type and returns the new field objectstatic FieldPathMapDataType.buildFieldPath(String remainFieldName, DataType keyType, DataType valueType) intintstatic ArrayDataTypeReturns an array datatype, where the array elements are of the given typestatic MapDataTypeReturns a map datatypestatic WeightedSetDataTypeDataType.getWeightedSet(DataType type) Returns a weighted set datatype, where the elements are of the given typestatic WeightedSetDataTypeDataType.getWeightedSet(DataType type, boolean createIfNonExistent, boolean removeIfZero) Returns a weighted set datatype, where the elements are of the given type, and which supports the properties createIfNonExistent and removeIfZerobooleanDataType.isAssignableFrom(DataType dataType) booleanDataType.isAssignableTo(DataType dataType) The reverse of isAssignableFromstatic FieldPathEntryFieldPathEntry.newAllKeysLookupEntry(DataType resultingDataType) Creates a new field path entry that digs through all the keys of a map or weighted set.static FieldPathEntryFieldPathEntry.newAllValuesLookupEntry(DataType resultingDataType) Creates a new field path entry that digs through all the values of a map or weighted set.static FieldPathEntryFieldPathEntry.newArrayLookupEntry(int lookupIndex, DataType resultingDataType) Creates a new field path entry that references an array index.static FieldPathFieldPath.newInstance(DataType fieldType, String fieldPath) Convenience method to build a field path from a path string.static FieldPathEntryFieldPathEntry.newMapLookupEntry(FieldValue lookupKey, DataType resultingDataType) Creates a new field path entry that references a map or weighted set.static FieldPathEntryFieldPathEntry.newVariableLookupEntry(String variableName, DataType resultingDataType) Creates a new field path entry that digs through all the keys in a map or weighted set, or all the indexes of an array, an sets the given variable name as it does so (or, if the variable is set, uses the set variable to look up the collection.voidRegister a data type of any sort, including document types.voidDocument.setDataType(DataType type) voidField.setDataType(DataType type) Deprecated.do not useMethod parameters in com.yahoo.document with type arguments of type DataTypeModifier and TypeMethodDescriptionprotected voidCollectionDataType.register(DocumentTypeManager manager, List<DataType> seenTypes) protected voidDataType.register(DocumentTypeManager manager, List<DataType> seenTypes) protected voidDocumentType.register(DocumentTypeManager manager, List<DataType> seenTypes) protected voidMapDataType.register(DocumentTypeManager manager, List<DataType> seenTypes) protected voidStructuredDataType.register(DocumentTypeManager manager, List<DataType> seenTypes) Constructors in com.yahoo.document with parameters of type DataTypeModifierConstructorDescriptionArrayDataType(DataType nestedType) ArrayDataType(DataType nestedType, int code) protectedCollectionDataType(String name, int code, DataType nestedType) ExtendedField(String name, DataType type, ExtendedField.Extract extract) ExtendedStringField(String name, DataType type, ExtendedField.Extract extract, ExtendedStringField.ExtractSpanTrees extractSpanTrees) Creates a new field.Constructor for normal fieldsField(String name, DataType dataType, DocumentType owner) Creates a new field.MapDataType(DataType keyType, DataType valueType) MapDataType(DataType keyType, DataType valueType, int id) WeightedSetDataType(DataType nestedType, boolean createIfNonExistent, boolean removeIfZero) WeightedSetDataType(DataType nestedType, boolean createIfNonExistent, boolean removeIfZero, int id) -
Uses of DataType in com.yahoo.document.annotation
Subclasses of DataType in com.yahoo.document.annotationModifier and TypeClassDescriptionclassA data type describing a field value having a reference to an annotation of a given type.Methods in com.yahoo.document.annotation that return DataTypeModifier and TypeMethodDescriptionAnnotationType.getDataType()Returns the data type of this annotation, if any.Methods in com.yahoo.document.annotation with parameters of type DataTypeModifier and TypeMethodDescriptionvoidAnnotationReference.setDataType(DataType dataType) voidAnnotationType.setDataType(DataType dataType) Sets the data type of this annotation.Constructors in com.yahoo.document.annotation with parameters of type DataTypeModifierConstructorDescriptionAnnotationType(String name, DataType dataType) Creates a new annotation type that can have values of the specified type.AnnotationType(String name, DataType dataType, int id) Creates a new annotation type that can have values of the specified type. -
Uses of DataType in com.yahoo.document.datatypes
Methods in com.yahoo.document.datatypes that return DataTypeModifier and TypeMethodDescriptionBoolFieldValue.getDataType()ByteFieldValue.getDataType()CompositeFieldValue.getDataType()DoubleFieldValue.getDataType()abstract DataTypeFieldValue.getDataType()Float16FieldValue.getDataType()FloatFieldValue.getDataType()IntegerFieldValue.getDataType()LongFieldValue.getDataType()PredicateFieldValue.getDataType()Raw.getDataType()ReferenceFieldValue.getDataType()StringFieldValue.getDataType()ReturnsDataType.STRING.UriFieldValue.getDataType()Methods in com.yahoo.document.datatypes with parameters of type DataTypeModifier and TypeMethodDescriptionstatic FieldValueFieldValue.create(FieldReader reader, DataType type) static <T> TStruct.getFieldValue(FieldValue struct, DataType structType, Field field, Class<T> fieldType) static <T> TStruct.getFieldValue(FieldValue struct, DataType structType, String fieldName, Class<T> fieldType) voidCompositeFieldValue.setDataType(DataType dataType) Constructors in com.yahoo.document.datatypes with parameters of type DataTypeModifierConstructorDescriptionCompositeFieldValue(DataType dataType) WeightedSet(DataType type) Creates a new WeightedSet.WeightedSet(DataType type, int initialCapacity) Creates a new weighted set with a given initial capacity. -
Uses of DataType in com.yahoo.document.internal
Subclasses of DataType in com.yahoo.document.internal -
Uses of DataType in com.yahoo.document.json.readers
Methods in com.yahoo.document.json.readers with parameters of type DataTypeModifier and TypeMethodDescriptionstatic ValueUpdateMapReader.createMapUpdate(TokenBuffer buffer, DataType currentLevel, boolean ignoreUndefinedFields) static voidArrayReader.fillArray(TokenBuffer buffer, CollectionFieldValue parent, DataType valueType, boolean ignoreUndefinedFields) static voidArrayReader.fillArrayUpdate(TokenBuffer buffer, int initNesting, DataType valueType, List<FieldValue> arrayContents, boolean ignoreUndefinedFields) static voidWeightedSetReader.fillWeightedSet(TokenBuffer buffer, DataType valueType, WeightedSet weightedSet) static voidWeightedSetReader.fillWeightedSetUpdate(TokenBuffer buffer, int initNesting, DataType valueType, WeightedSet weightedSet) static FieldValueSingleValueReader.readAtomic(String field, DataType expectedType) static ValueUpdateSingleValueReader.readSingleUpdate(TokenBuffer buffer, DataType expectedType, String action, boolean ignoreUndefinedFields) static FieldValueSingleValueReader.readSingleValue(TokenBuffer buffer, DataType expectedType, boolean ignoreUndefinedFields) -
Uses of DataType in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization with parameters of type DataTypeModifier and TypeMethodDescriptionprotected ValueUpdateVespaDocumentDeserializer6.readTensorAddUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorAddUpdate(DataType type) protected ValueUpdateVespaDocumentDeserializer6.readTensorModifyUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorModifyUpdate(DataType type) protected ValueUpdateVespaDocumentDeserializer6.readTensorRemoveUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorRemoveUpdate(DataType type) voidDocumentUpdateWriter.write(AddValueUpdate update, DataType superType) voidDocumentUpdateWriter.write(AssignValueUpdate update, DataType superType) voidDocumentUpdateWriter.write(ClearValueUpdate clearValueUpdate, DataType superType) voidDocumentUpdateWriter.write(MapValueUpdate update, DataType superType) voidDocumentUpdateWriter.write(RemoveValueUpdate update, DataType superType) voidVespaDocumentSerializer6.write(AddValueUpdate update, DataType superType) Deprecated, for removal: This API element is subject to removal in a future version.voidVespaDocumentSerializer6.write(AssignValueUpdate update, DataType superType) Deprecated, for removal: This API element is subject to removal in a future version.voidVespaDocumentSerializer6.write(ClearValueUpdate clearValueUpdate, DataType superType) Deprecated, for removal: This API element is subject to removal in a future version.voidVespaDocumentSerializer6.write(MapValueUpdate update, DataType superType) Deprecated, for removal: This API element is subject to removal in a future version.voidVespaDocumentSerializer6.write(RemoveValueUpdate update, DataType superType) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of DataType in com.yahoo.document.update
Methods in com.yahoo.document.update with parameters of type DataTypeModifier and TypeMethodDescriptionprotected voidAddValueUpdate.checkCompatibility(DataType fieldType) protected voidArithmeticValueUpdate.checkCompatibility(DataType fieldType) protected voidAssignValueUpdate.checkCompatibility(DataType fieldType) protected voidClearValueUpdate.checkCompatibility(DataType fieldType) protected voidMapValueUpdate.checkCompatibility(DataType fieldType) protected voidRemoveValueUpdate.checkCompatibility(DataType fieldType) protected voidTensorAddUpdate.checkCompatibility(DataType fieldType) protected voidTensorModifyUpdate.checkCompatibility(DataType fieldType) protected voidTensorRemoveUpdate.checkCompatibility(DataType fieldType) protected abstract voidValueUpdate.checkCompatibility(DataType fieldType) voidAddValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidArithmeticValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidAssignValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidClearValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidMapValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidRemoveValueUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidTensorAddUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidTensorModifyUpdate.serialize(DocumentUpdateWriter data, DataType superType) voidTensorRemoveUpdate.serialize(DocumentUpdateWriter data, DataType superType) abstract voidValueUpdate.serialize(DocumentUpdateWriter data, DataType superType)