public abstract class CollectionDataType extends DataType
Modifier and Type | Field and Description |
---|---|
static int |
classId |
private DataType |
nestedType |
Modifier | Constructor and Description |
---|---|
protected |
CollectionDataType(String name,
int code,
DataType nestedType) |
Modifier and Type | Method and Description |
---|---|
CollectionDataType |
clone() |
protected FieldValue |
createByReflection(Object arg)
Creates a field value by reflection
|
abstract CollectionFieldValue |
createFieldValue()
Creates a new, empty FieldValue of this type
|
DataType |
getNestedType() |
PrimitiveDataType |
getPrimitiveType()
Returns the primitive datatype associated with this datatype, i.e.
|
boolean |
isMultivalue()
Returns whether this is a multivalue type, i.e either a CollectionDataType or a MapDataType
|
boolean |
isValueCompatible(FieldValue value) |
protected void |
register(DocumentTypeManager manager,
List<DataType> seenTypes) |
void |
setNestedType(DataType nestedType)
Sets the nested type of this CollectionDataType. WARNING! Do not use! Only to be used by config system!
|
void |
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) |
buildFieldPath, compareTo, createFieldValue, equals, getArray, getCode, getId, getMap, getName, getTensor, getValueClass, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isRegistered, lastPredefinedDataTypeId, register, setId, setName, setRegistered, skipDotInString, toString
public static int classId
private DataType nestedType
public abstract CollectionFieldValue createFieldValue()
DataType
createFieldValue
in class DataType
public CollectionDataType clone()
public DataType getNestedType()
protected FieldValue createByReflection(Object arg)
DataType
createByReflection
in class DataType
arg
- the value of the newly created field valuepublic void setNestedType(DataType nestedType)
public PrimitiveDataType getPrimitiveType()
DataType
getPrimitiveType
in class DataType
public boolean isValueCompatible(FieldValue value)
isValueCompatible
in class DataType
protected void register(DocumentTypeManager manager, List<DataType> seenTypes)
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
visitMembers
in class DataType
public boolean isMultivalue()
DataType
isMultivalue
in class DataType
Copyright © 2017. All rights reserved.