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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildFieldPath
(String remainFieldName) Creates a field path from the given field path string.protected FieldValue
createByReflection
(Object arg) Creates a field value by reflectionabstract StructuredFieldValue
Creates a new, empty FieldValue of this typeprotected static int
boolean
Returns the name of this as a DataTypeNameabstract Field
getField
(int id) Gets the field with the specified id.abstract Field
Gets the field matching a given name.abstract Collection<Field>
int
hashCode()
protected void
register
(DocumentTypeManager manager, List<DataType> seenTypes) Methods inherited from class com.yahoo.document.DataType
clone, compareTo, createFieldValue, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getValueClass, getWeightedSet, getWeightedSet, isAssignableFrom, isMultivalue, isRegistered, isValueCompatible, 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
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
StructuredDataType
-
StructuredDataType
-
-
Method Details
-
createId
-
createFieldValue
Description copied from class:DataType
Creates a new, empty FieldValue of this type- Specified by:
createFieldValue
in classDataType
-
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
-
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: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
-