Package com.yahoo.document
Class BaseStructDataType
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
- All Implemented Interfaces:
Cloneable
,Comparable<DataType>
- Direct Known Subclasses:
StructDataType
- Author:
- humbe
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class com.yahoo.document.StructuredDataType
classId
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
assign
(BaseStructDataType type) void
clone()
getField
(int id) Gets the field with the specified id.Gets the field matching a given name.int
boolean
boolean
removeField
(String fieldName) Methods inherited from class com.yahoo.document.StructuredDataType
buildFieldPath, createByReflection, createFieldValue, createId, equals, getDataTypeName, hashCode, register
Methods inherited from class com.yahoo.document.DataType
compareTo, createFieldValue, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getValueClass, getWeightedSet, getWeightedSet, isAssignableFrom, isAssignableTo, 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
-
fieldIds
-
fields
-
-
Method Details
-
assign
-
clone
-
addField
-
removeField
-
clearFields
public void clearFields() -
getField
Description copied from class:StructuredDataType
Gets the field matching a given name.- Specified by:
getField
in classStructuredDataType
- Parameters:
fieldName
- The name of a field.- Returns:
- Returns the matching field, or null if not found.
-
getField
Description copied from class:StructuredDataType
Gets the field with the specified id.- Specified by:
getField
in classStructuredDataType
- Parameters:
id
- the id of the field to return.- Returns:
- the matching field, or null if not found.
-
hasField
-
hasField
-
getFields
- Specified by:
getFields
in classStructuredDataType
-
getFieldCount
public int getFieldCount()
-