Package com.yahoo.document
Class StructuredDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.StructuredDataType
- All Implemented Interfaces:
Cloneable,Comparable<DataType>
- Direct Known Subclasses:
BaseStructDataType,DocumentType
- Author:
- HÃ¥kon Humberset
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildFieldPath(String remainFieldName) Creates a field path from the given field path string.protected FieldValuecreateByReflection(Object arg) Creates a field value by reflectionabstract StructuredFieldValueCreates a new, empty FieldValue of this typeprotected static intbooleanReturns the name of this as a DataTypeNameabstract FieldgetField(int id) Gets the field with the specified id.abstract FieldGets the field matching a given name.abstract Collection<Field>inthashCode()protected voidregister(DocumentTypeManager manager, List<DataType> seenTypes) Methods inherited from class com.yahoo.document.DataType
clone, compareTo, createFieldValue, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getValueClass, getWeightedSet, getWeightedSet, isAssignableFrom, isAssignableTo, isMultivalue, isRegistered, isValueCompatible, 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
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
StructuredDataType
-
StructuredDataType
-
-
Method Details
-
createId
-
createFieldValue
Description copied from class:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein 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
-
getDataTypeName
Returns the name of this as a DataTypeName- Returns:
- Return the Documentname of this doumenttype.
-
getField
Gets the field matching a given name.- Parameters:
name- The name of a field.- Returns:
- Returns the matching field, or null if not found.
-
getField
Gets the field with the specified id.- Parameters:
id- the id of the field to return.- Returns:
- the matching field, or null if not found.
-
getFields
-
equals
-
hashCode
public int hashCode() -
register
-
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
-