Package com.yahoo.document
Class MapDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.MapDataType
- All Implemented Interfaces:
Cloneable
,Comparable<DataType>
Represents a map type.
- Author:
- vegardh
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMapDataType
(DataType keyType, DataType valueType) MapDataType
(DataType keyType, DataType valueType, int id) -
Method Summary
Modifier and TypeMethodDescriptionbuildFieldPath
(String remainFieldName) Creates a field path from the given field path string.static FieldPath
buildFieldPath
(String remainFieldName, DataType keyType, DataType valueType) clone()
protected FieldValue
createByReflection
(Object arg) Creates a field value by reflectionCreates a new, empty FieldValue of this typeboolean
Returns whether this is a multivalue type, i.e either a CollectionDataType or a MapDataTypeboolean
isValueCompatible
(FieldValue value) protected void
register
(DocumentTypeManager manager, List<DataType> seenTypes) Methods inherited from class com.yahoo.document.DataType
compareTo, createFieldValue, equals, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isRegistered, lastPredefinedDataTypeId, register, setId, setName, toString, visitMembers
Methods 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, serializeWithId
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Constructor Details
-
MapDataType
-
MapDataType
-
-
Method Details
-
clone
-
createByReflection
Description copied from class:DataType
Creates a field value by reflection- Overrides:
createByReflection
in classDataType
- Parameters:
arg
- the value of the newly created field value- Returns:
- a fully constructed value
-
isValueCompatible
- Specified by:
isValueCompatible
in classDataType
-
getKeyType
-
getValueType
-
createFieldValue
Description copied from class:DataType
Creates a new, empty FieldValue of this type- Specified by:
createFieldValue
in classDataType
-
getValueClass
- Specified by:
getValueClass
in classDataType
-
register
-
buildFieldPath
-
buildFieldPath
Description copied from class:DataType
Creates a field path from the given field path string.- Overrides:
buildFieldPath
in classDataType
- Parameters:
remainFieldName
- a string containing the field path- Returns:
- Returns a valid field path, parsed from the string
-
isMultivalue
public boolean isMultivalue()Description copied from class:DataType
Returns whether this is a multivalue type, i.e either a CollectionDataType or a MapDataType- Overrides:
isMultivalue
in classDataType
-