Package com.yahoo.document
Class CollectionDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.CollectionDataType
- All Implemented Interfaces:
Cloneable,Comparable<DataType>
- Direct Known Subclasses:
ArrayDataType,WeightedSetDataType
- Author:
- Einar M R Rosenvinge
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCollectionDataType(String name, int code, DataType nestedType) -
Method Summary
Modifier and TypeMethodDescriptionclone()protected FieldValuecreateByReflection(Object arg) Creates a field value by reflectionabstract CollectionFieldValue<?>Creates a new, empty FieldValue of this typeReturns the nested type of this if it is a collection type, null otherwise.Returns the primitive datatype associated with this datatype, i.e. the type itself if this is a PrimitiveDataType, the nested type if this is a CollectionDataType or null for all other casesbooleanReturns whether this is a multivalue type, i.e. either a CollectionDataType or a MapDataTypebooleanisValueCompatible(FieldValue value) protected voidregister(DocumentTypeManager manager, List<DataType> seenTypes) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.document.DataType
buildFieldPath, compareTo, createFieldValue, equals, getArray, getCode, getId, getMap, getName, getTensor, getValueClass, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isAssignableTo, isRegistered, lastPredefinedDataTypeId, register, setId, setName, toStringMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onDeserialize, onGetClassId, onSerialize, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithIdMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static int classId
-
-
Constructor Details
-
CollectionDataType
-
-
Method Details
-
createFieldValue
Description copied from class:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein classDataType
-
clone
-
getNestedType
Description copied from class:DataTypeReturns the nested type of this if it is a collection type, null otherwise.- Overrides:
getNestedTypein classDataType
-
createByReflection
Description copied from class:DataTypeCreates a field value by reflection- Overrides:
createByReflectionin classDataType- Parameters:
arg- the value of the newly created field value- Returns:
- a fully constructed value
-
getPrimitiveType
Description copied from class:DataTypeReturns the primitive datatype associated with this datatype, i.e. the type itself if this is a PrimitiveDataType, the nested type if this is a CollectionDataType or null for all other cases- Overrides:
getPrimitiveTypein classDataType- Returns:
- primitive data type, or null
-
isValueCompatible
- Specified by:
isValueCompatiblein classDataType
-
register
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classDataType
-
isMultivalue
public boolean isMultivalue()Description copied from class:DataTypeReturns whether this is a multivalue type, i.e. either a CollectionDataType or a MapDataType- Overrides:
isMultivaluein classDataType
-