Uses of Class
com.yahoo.document.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
Modifier and TypeClassDescriptionclass
class
Date: Apr 15, 2008class
class
A document definition is a list of fields.class
Represents a map type.class
class
class
AReferenceDataType
specifies a particular concrete document type that aReferenceFieldValue
instance binds to.class
class
class
A DataType containing a tensor typeclass
Modifier and TypeMethodDescriptionDataType.clone()
final DataType
Field.getDataType()
Returns the datatype of the fieldMapDataType.getKeyType()
CollectionDataType.getNestedType()
FieldPath.getResultingDataType()
FieldPathEntry.getResultingDataType()
MapDataType.getValueType()
Modifier and TypeMethodDescriptionDocumentTypeManager.getDataTypes()
Returns a read only view of the registered data typesModifier and TypeMethodDescriptionAdds a new field to this document type and returns the new field objectstatic FieldPath
MapDataType.buildFieldPath
(String remainFieldName, DataType keyType, DataType valueType) int
int
static ArrayDataType
Returns an array datatype, where the array elements are of the given typestatic MapDataType
Returns a map datatypestatic WeightedSetDataType
DataType.getWeightedSet
(DataType type) Returns a weighted set datatype, where the elements are of the given typestatic WeightedSetDataType
DataType.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 removeIfZerofinal boolean
DataType.isAssignableFrom
(DataType dataType) static FieldPathEntry
FieldPathEntry.newAllKeysLookupEntry
(DataType resultingDataType) Creates a new field path entry that digs through all the keys of a map or weighted set.static FieldPathEntry
FieldPathEntry.newAllValuesLookupEntry
(DataType resultingDataType) Creates a new field path entry that digs through all the values of a map or weighted set.static FieldPathEntry
FieldPathEntry.newArrayLookupEntry
(int lookupIndex, DataType resultingDataType) Creates a new field path entry that references an array index.static FieldPath
FieldPath.newInstance
(DataType fieldType, String fieldPath) Convenience method to build a field path from a path string.static FieldPathEntry
FieldPathEntry.newMapLookupEntry
(FieldValue lookupKey, DataType resultingDataType) Creates a new field path entry that references a map or weighted set.static FieldPathEntry
FieldPathEntry.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.void
Register a data type of any sort, including document types.void
Document.setDataType
(DataType type) void
Field.setDataType
(DataType type) Deprecated.do not useModifier and TypeMethodDescriptionprotected void
CollectionDataType.register
(DocumentTypeManager manager, List<DataType> seenTypes) protected void
DataType.register
(DocumentTypeManager manager, List<DataType> seenTypes) protected void
DocumentType.register
(DocumentTypeManager manager, List<DataType> seenTypes) protected void
MapDataType.register
(DocumentTypeManager manager, List<DataType> seenTypes) protected void
StructuredDataType.register
(DocumentTypeManager manager, List<DataType> seenTypes) ModifierConstructorDescriptionArrayDataType
(DataType nestedType) ArrayDataType
(DataType nestedType, int code) protected
CollectionDataType
(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
Modifier and TypeClassDescriptionclass
A data type describing a field value having a reference to an annotation of a given type.Modifier and TypeMethodDescriptionAnnotationType.getDataType()
Returns the data type of this annotation, if any.Modifier and TypeMethodDescriptionvoid
AnnotationReference.setDataType
(DataType dataType) void
AnnotationType.setDataType
(DataType dataType) Sets the data type of this annotation.ModifierConstructorDescriptionAnnotationType
(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
Modifier and TypeMethodDescriptionBoolFieldValue.getDataType()
ByteFieldValue.getDataType()
CompositeFieldValue.getDataType()
DoubleFieldValue.getDataType()
abstract DataType
FieldValue.getDataType()
Float16FieldValue.getDataType()
FloatFieldValue.getDataType()
IntegerFieldValue.getDataType()
LongFieldValue.getDataType()
PredicateFieldValue.getDataType()
Raw.getDataType()
ReferenceFieldValue.getDataType()
StringFieldValue.getDataType()
ReturnsDataType
.STRING.UriFieldValue.getDataType()
Modifier and TypeMethodDescriptionstatic FieldValue
FieldValue.create
(FieldReader reader, DataType type) static <T> T
Struct.getFieldValue
(FieldValue struct, DataType structType, Field field, Class<T> fieldType) static <T> T
Struct.getFieldValue
(FieldValue struct, DataType structType, String fieldName, Class<T> fieldType) void
CompositeFieldValue.setDataType
(DataType dataType) ModifierConstructorDescriptionCompositeFieldValue
(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
-
Uses of DataType in com.yahoo.document.json.readers
Modifier and TypeMethodDescriptionstatic ValueUpdate
MapReader.createMapUpdate
(TokenBuffer buffer, DataType currentLevel, boolean ignoreUndefinedFields) static void
ArrayReader.fillArray
(TokenBuffer buffer, CollectionFieldValue parent, DataType valueType, boolean ignoreUndefinedFields) static void
ArrayReader.fillArrayUpdate
(TokenBuffer buffer, int initNesting, DataType valueType, List<FieldValue> arrayContents, boolean ignoreUndefinedFields) static void
WeightedSetReader.fillWeightedSet
(TokenBuffer buffer, DataType valueType, WeightedSet weightedSet) static void
WeightedSetReader.fillWeightedSetUpdate
(TokenBuffer buffer, int initNesting, DataType valueType, WeightedSet weightedSet) static FieldValue
SingleValueReader.readAtomic
(String field, DataType expectedType) static ValueUpdate
SingleValueReader.readSingleUpdate
(TokenBuffer buffer, DataType expectedType, String action, boolean ignoreUndefinedFields) static FieldValue
SingleValueReader.readSingleValue
(TokenBuffer buffer, DataType expectedType, boolean ignoreUndefinedFields) -
Uses of DataType in com.yahoo.document.serialization
Modifier and TypeMethodDescriptionVespaDocumentDeserializer6.getValueUpdate
(DataType superType, DataType subType) protected ValueUpdate
VespaDocumentDeserializer6.readTensorAddUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorAddUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializer6.readTensorModifyUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorModifyUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializer6.readTensorRemoveUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorRemoveUpdate
(DataType type) void
DocumentUpdateWriter.write
(AddValueUpdate update, DataType superType) void
DocumentUpdateWriter.write
(AssignValueUpdate update, DataType superType) void
DocumentUpdateWriter.write
(ClearValueUpdate clearValueUpdate, DataType superType) void
DocumentUpdateWriter.write
(MapValueUpdate update, DataType superType) void
DocumentUpdateWriter.write
(RemoveValueUpdate update, DataType superType) void
VespaDocumentSerializer6.write
(AddValueUpdate update, DataType superType) void
VespaDocumentSerializer6.write
(AssignValueUpdate update, DataType superType) void
VespaDocumentSerializer6.write
(ClearValueUpdate clearValueUpdate, DataType superType) void
VespaDocumentSerializer6.write
(MapValueUpdate update, DataType superType) void
VespaDocumentSerializer6.write
(RemoveValueUpdate update, DataType superType) -
Uses of DataType in com.yahoo.document.update
Modifier and TypeMethodDescriptionprotected void
AddValueUpdate.checkCompatibility
(DataType fieldType) protected void
ArithmeticValueUpdate.checkCompatibility
(DataType fieldType) protected void
AssignValueUpdate.checkCompatibility
(DataType fieldType) protected void
ClearValueUpdate.checkCompatibility
(DataType fieldType) protected void
MapValueUpdate.checkCompatibility
(DataType fieldType) protected void
RemoveValueUpdate.checkCompatibility
(DataType fieldType) protected void
TensorAddUpdate.checkCompatibility
(DataType fieldType) protected void
TensorModifyUpdate.checkCompatibility
(DataType fieldType) protected void
TensorRemoveUpdate.checkCompatibility
(DataType fieldType) protected abstract void
ValueUpdate.checkCompatibility
(DataType fieldType) void
AddValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
ArithmeticValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
AssignValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
ClearValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
MapValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
RemoveValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
TensorAddUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
TensorModifyUpdate.serialize
(DocumentUpdateWriter data, DataType superType) void
TensorRemoveUpdate.serialize
(DocumentUpdateWriter data, DataType superType) abstract void
ValueUpdate.serialize
(DocumentUpdateWriter data, DataType superType)