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
FieldsModifier and TypeFieldDescriptionFields inherited from class com.yahoo.document.StructuredDataType
classId -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidassign(BaseStructDataType type) voidclone()getField(int id) Gets the field with the specified id.Gets the field matching a given name.intbooleanbooleanremoveField(String fieldName) Methods inherited from class com.yahoo.document.StructuredDataType
buildFieldPath, createByReflection, createFieldValue, createId, equals, getDataTypeName, hashCode, registerMethods 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, 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
-
fieldIds
-
fields
-
-
Method Details
-
assign
-
clone
-
addField
-
removeField
-
clearFields
public void clearFields() -
getField
Description copied from class:StructuredDataTypeGets the field matching a given name.- Specified by:
getFieldin classStructuredDataType- 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.- Specified by:
getFieldin classStructuredDataType- Parameters:
id- the id of the field to return.- Returns:
- the matching field, or null if not found.
-
hasField
-
hasField
-
getFields
- Specified by:
getFieldsin classStructuredDataType
-
getFieldCount
public int getFieldCount()
-