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:
Serializable
,Cloneable
,Comparable<DataType>
- Direct Known Subclasses:
StructDataType
Date: Apr 15, 2008
- Author:
- humbe
- See Also:
-
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()
Deprecated.Will go away on Vespa 8com.yahoo.compress.Compressor
Deprecated.Will go away on Vespa 8getField
(int id) Gets the field with the specified id.Gets the field matching a given name.int
boolean
boolean
removeField
(String fieldName) void
Deprecated.Ignored and will go away on Vespa 8Methods 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, 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, 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() -
getCompressor
Deprecated.Will go away on Vespa 8Returns the compressor to use to compress data of this type -
getCompressionConfig
Deprecated.Will go away on Vespa 8Returns a view of the configuration of the compressor used to compress this type -
setCompressionConfig
Deprecated.Ignored and will go away on Vespa 8Set the config to the compressor used to compress data of this type
-