Uses of Class
com.yahoo.document.DataType
-
Packages that use DataType Package Description com.yahoo.document com.yahoo.document.annotation Provides classes and interfaces for creating trees of spans over string values in Vespa documents, and annotating these spans.com.yahoo.document.datatypes com.yahoo.document.json.readers com.yahoo.document.serialization com.yahoo.document.update -
-
Uses of DataType in com.yahoo.document
Subclasses of DataType in com.yahoo.document Modifier and Type Class Description class
ArrayDataType
class
BaseStructDataType
Date: Apr 15, 2008class
CollectionDataType
class
DocumentType
A document definition is a list of fields.class
MapDataType
Represents a map type.class
NumericDataType
class
PrimitiveDataType
class
ReferenceDataType
AReferenceDataType
specifies a particular concrete document type that aReferenceFieldValue
instance binds to.class
StructDataType
class
StructuredDataType
TODO: What is this and whyclass
TemporaryStructuredDataType
Internal class, DO NOT USE!! Only public because it must be used from com.yahoo.searchdefinition.parser.class
TensorDataType
A DataType containing a tensor typeclass
WeightedSetDataType
Fields in com.yahoo.document declared as DataType Modifier and Type Field Description protected DataType
Field. dataType
Methods in com.yahoo.document that return DataType Modifier and Type Method Description DataType
DataType. clone()
DataType
DocumentTypeManager. getDataType(int code)
DataType
DocumentTypeManager. getDataType(int code, java.lang.String detailedType)
Return a data type instanceDataType
DocumentTypeManager. getDataType(java.lang.String name)
DataType
Field. getDataType()
Returns the datatype of the fieldDataType
MapDataType. getKeyType()
DataType
CollectionDataType. getNestedType()
DataType
FieldPath. getResultingDataType()
DataType
FieldPathEntry. getResultingDataType()
DataType
MapDataType. getValueType()
Methods in com.yahoo.document that return types with arguments of type DataType Modifier and Type Method Description java.util.Collection<DataType>
DocumentTypeManager. getDataTypes()
Returns a read only view of the registered data typesMethods in com.yahoo.document with parameters of type DataType Modifier and Type Method Description Field
DocumentType. addField(java.lang.String name, DataType type)
Adds a new field to this document type and returns the new field objectField
DocumentType. addHeaderField(java.lang.String name, DataType type)
Deprecated.static FieldPath
MapDataType. buildFieldPath(java.lang.String remainFieldName, DataType keyType, DataType valueType)
int
DataType. compareTo(DataType dataType)
int
ReferenceDataType. compareTo(DataType rhs)
static ArrayDataType
DataType. getArray(DataType type)
Returns an array datatype, where the array elements are of the given typestatic MapDataType
DataType. getMap(DataType key, DataType value)
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 removeIfZeroboolean
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, java.lang.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(java.lang.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
DocumentTypeManager. register(DataType type)
Register a data type of any sort, including document types.void
Document. setDataType(DataType type)
void
Field. setDataType(DataType type)
Deprecated.do not usevoid
MapDataType. setKeyType(DataType keyType)
Sets the key type of this MapDataType. WARNING! Do not use! Only to be used by config system!void
CollectionDataType. setNestedType(DataType nestedType)
Sets the nested type of this CollectionDataType. WARNING! Do not use! Only to be used by config system!void
MapDataType. setValueType(DataType valueType)
Sets the key type of this MapDataType. WARNING! Do not use! Only to be used by config system!Method parameters in com.yahoo.document with type arguments of type DataType Modifier and Type Method Description protected void
CollectionDataType. register(DocumentTypeManager manager, java.util.List<DataType> seenTypes)
protected void
DataType. register(DocumentTypeManager manager, java.util.List<DataType> seenTypes)
protected void
DocumentType. register(DocumentTypeManager manager, java.util.List<DataType> seenTypes)
protected void
MapDataType. register(DocumentTypeManager manager, java.util.List<DataType> seenTypes)
protected void
StructuredDataType. register(DocumentTypeManager manager, java.util.List<DataType> seenTypes)
Constructors in com.yahoo.document with parameters of type DataType Constructor Description ArrayDataType(DataType nestedType)
ArrayDataType(DataType nestedType, int code)
CollectionDataType(java.lang.String name, int code, DataType nestedType)
ExtendedField(java.lang.String name, DataType type, ExtendedField.Extract extract)
ExtendedStringField(java.lang.String name, DataType type, ExtendedField.Extract extract, ExtendedStringField.ExtractSpanTrees extractSpanTrees)
Field(java.lang.String name, int id, DataType dataType)
Field(java.lang.String name, int id, DataType dataType, boolean isHeader)
Deprecated.Field(java.lang.String name, DataType dataType)
Constructor for header fieldsField(java.lang.String name, DataType dataType, boolean isHeader)
Deprecated.Field(java.lang.String name, DataType dataType, boolean isHeader, DocumentType owner)
Deprecated.Field(java.lang.String name, DataType dataType, DocumentType owner)
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)
WeightedSetDataType(java.lang.String typeName, int code, DataType nestedType, boolean createIfNonExistent, boolean removeIfZero)
-
Uses of DataType in com.yahoo.document.annotation
Subclasses of DataType in com.yahoo.document.annotation Modifier and Type Class Description class
AnnotationReferenceDataType
A data type describing a field value having a reference to an annotation of a given type.Methods in com.yahoo.document.annotation that return DataType Modifier and Type Method Description DataType
AnnotationType. getDataType()
Returns the data type of this annotation, if any.Methods in com.yahoo.document.annotation with parameters of type DataType Modifier and Type Method Description void
AnnotationReference. setDataType(DataType dataType)
void
AnnotationType. setDataType(DataType dataType)
Sets the data type of this annotation. WARNING! Only to be used by configuration system, do not use!!Constructors in com.yahoo.document.annotation with parameters of type DataType Constructor Description AnnotationType(java.lang.String name, DataType dataType)
Creates a new annotation type that can have values of the specified type.AnnotationType(java.lang.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 DataType Modifier and Type Method Description DataType
BoolFieldValue. getDataType()
DataType
ByteFieldValue. getDataType()
DataType
CompositeFieldValue. getDataType()
DataType
DoubleFieldValue. getDataType()
abstract DataType
FieldValue. getDataType()
DataType
Float16FieldValue. getDataType()
DataType
FloatFieldValue. getDataType()
DataType
IntegerFieldValue. getDataType()
DataType
LongFieldValue. getDataType()
DataType
PredicateFieldValue. getDataType()
DataType
Raw. getDataType()
DataType
ReferenceFieldValue. getDataType()
DataType
StringFieldValue. getDataType()
ReturnsDataType
.STRING.DataType
UriFieldValue. getDataType()
Methods in com.yahoo.document.datatypes with parameters of type DataType Modifier and Type Method Description static FieldValue
FieldValue. create(FieldReader reader, DataType type)
static <T> T
Struct. getFieldValue(FieldValue struct, DataType structType, Field field, java.lang.Class<T> fieldType)
static <T> T
Struct. getFieldValue(FieldValue struct, DataType structType, java.lang.String fieldName, java.lang.Class<T> fieldType)
void
CompositeFieldValue. setDataType(DataType dataType)
Constructors in com.yahoo.document.datatypes with parameters of type DataType Constructor Description Array(DataType type)
Array(DataType type, int initialCapacity)
Array(DataType type, java.util.List<T> values)
CompositeFieldValue(DataType dataType)
Struct(DataType type)
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.json.readers
Methods in com.yahoo.document.json.readers with parameters of type DataType Modifier and Type Method Description static ValueUpdate
MapReader. createMapUpdate(TokenBuffer buffer, DataType currentLevel, FieldValue keyParent, FieldValue topLevelKey)
static void
ArrayReader. fillArray(TokenBuffer buffer, CollectionFieldValue parent, DataType valueType)
static void
ArrayReader. fillArrayUpdate(TokenBuffer buffer, int initNesting, DataType valueType, java.util.List<FieldValue> arrayContents)
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(java.lang.String field, DataType expectedType)
static ValueUpdate
SingleValueReader. readSingleUpdate(TokenBuffer buffer, DataType expectedType, java.lang.String action)
static FieldValue
SingleValueReader. readSingleValue(TokenBuffer buffer, DataType expectedType)
-
Uses of DataType in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization with parameters of type DataType Modifier and Type Method Description ValueUpdate
VespaDocumentDeserializer6. 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
Methods in com.yahoo.document.update with parameters of type DataType Modifier and Type Method Description protected 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)
-