Package com.yahoo.document
Class StructDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.StructuredDataType
com.yahoo.document.BaseStructDataType
com.yahoo.document.StructDataType
- All Implemented Interfaces:
Cloneable,Comparable<DataType>
- Direct Known Subclasses:
GeoPosType
- Author:
- Einar M R Rosenvinge
-
Field Summary
FieldsFields inherited from class com.yahoo.document.BaseStructDataType
fieldIds, fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassign(StructDataType type) clone()Creates a new, empty FieldValue of this typeCreates a new FieldValue of this type, with the given value.booleangetField(int id) Gets the field with the specified id.Gets the field matching a given name.intinthashCode()voidinherit(StructDataType type) booleaninherits(StructDataType type) booleanisValueCompatible(FieldValue value) toString()Methods inherited from class com.yahoo.document.BaseStructDataType
assign, clearFields, hasField, hasField, removeFieldMethods inherited from class com.yahoo.document.StructuredDataType
buildFieldPath, createByReflection, createId, getDataTypeName, registerMethods inherited from class com.yahoo.document.DataType
compareTo, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, isAssignableFrom, isAssignableTo, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, setId, setName, 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
-
StructDataType
-
StructDataType
-
-
Method Details
-
createFieldValue
Description copied from class:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein classStructuredDataType
-
createFieldValue
Description copied from class:DataTypeCreates a new FieldValue of this type, with the given value.- Overrides:
createFieldValuein classDataType- Parameters:
o- the value of the new FieldValue- Returns:
- a new FieldValue of this type, with the given value
-
clone
- Overrides:
clonein classBaseStructDataType
-
assign
-
getField
Description copied from class:StructuredDataTypeGets the field matching a given name.- Overrides:
getFieldin classBaseStructDataType- Parameters:
fieldName- The name of a field.- Returns:
- Returns the matching field, or null if not found.
-
getField
Description copied from class:StructuredDataTypeGets the field with the specified id.- Overrides:
getFieldin classBaseStructDataType- Parameters:
id- the id of the field to return.- Returns:
- the matching field, or null if not found.
-
addField
- Overrides:
addFieldin classBaseStructDataType
-
getFields
- Overrides:
getFieldsin classBaseStructDataType
-
getFieldsThisTypeOnly
-
getFieldCount
public int getFieldCount()- Overrides:
getFieldCountin classBaseStructDataType
-
getValueClass
- Specified by:
getValueClassin classDataType
-
isValueCompatible
- Specified by:
isValueCompatiblein classDataType
-
inherit
-
getInheritedTypes
-
inherits
-
equals
- Overrides:
equalsin classStructuredDataType
-
hashCode
public int hashCode()- Overrides:
hashCodein classStructuredDataType
-
toString
-