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
ConstructorsConstructorDescriptionMapDataType(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 FieldPathbuildFieldPath(String remainFieldName, DataType keyType, DataType valueType) clone()protected FieldValuecreateByReflection(Object arg) Creates a field value by reflectionCreates a new, empty FieldValue of this typebooleanReturns whether this is a multivalue type, i.e. either a CollectionDataType or a MapDataTypebooleanisValueCompatible(FieldValue value) protected voidregister(DocumentTypeManager manager, List<DataType> seenTypes) Methods inherited from class com.yahoo.document.DataType
compareTo, createFieldValue, equals, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isAssignableTo, isRegistered, lastPredefinedDataTypeId, register, setId, setName, toString, visitMembersMethods 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
-
Constructor Details
-
MapDataType
-
MapDataType
-
-
Method Details
-
clone
-
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
-
isValueCompatible
- Specified by:
isValueCompatiblein classDataType
-
getKeyType
-
getValueType
-
createFieldValue
Description copied from class:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein classDataType
-
getValueClass
- Specified by:
getValueClassin classDataType
-
register
-
buildFieldPath
-
buildFieldPath
Description copied from class:DataTypeCreates a field path from the given field path string.- Overrides:
buildFieldPathin 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:DataTypeReturns whether this is a multivalue type, i.e. either a CollectionDataType or a MapDataType- Overrides:
isMultivaluein classDataType
-