Package com.yahoo.documentmodel
Class NewDocumentType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.StructuredDataType
com.yahoo.documentmodel.NewDocumentType
- All Implemented Interfaces:
DataTypeCollection
,Cloneable
,Comparable<com.yahoo.document.DataType>
public final class NewDocumentType
extends com.yahoo.document.StructuredDataType
implements DataTypeCollection
- Author:
- baldersheim
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.yahoo.document.StructuredDataType
classId
Fields inherited from class com.yahoo.document.DataType
BOOL, BYTE, DOCUMENT, DOUBLE, FLOAT, FLOAT16, INT, LONG, NONE, PREDICATE, RAW, STRING, TAG, tensorDataTypeCode, URI
-
Constructor Summary
ConstructorDescriptionNewDocumentType
(NewDocumentType.Name name, com.yahoo.document.StructDataType contentStruct, FieldSets fs, Set<NewDocumentType.Name> documentReferences, Set<String> importedFieldNames) NewDocumentType
(NewDocumentType.Name name, Set<NewDocumentType.Name> documentReferences) NewDocumentType
(NewDocumentType.Name name, Set<NewDocumentType.Name> documentReferences, Set<String> importedFieldNames) -
Method Summary
Modifier and TypeMethodDescriptionadd
(com.yahoo.document.annotation.AnnotationType type) add
(com.yahoo.document.DataType type) boolean
containsField
(String fieldName) com.yahoo.document.Document
Collection<com.yahoo.document.annotation.AnnotationType>
Collection<com.yahoo.document.Field>
Collection<com.yahoo.document.annotation.AnnotationType>
com.yahoo.document.annotation.AnnotationType
getAnnotationType
(String name) com.yahoo.document.DataType
com.yahoo.document.DataType
getDataType
(int id) com.yahoo.document.DataType
getDataType
(String name) com.yahoo.document.DataType
getDataTypeRecursive
(int id) com.yahoo.document.DataType
getDataTypeRecursive
(String name) com.yahoo.document.Field
getField
(int id) com.yahoo.document.Field
Collection<com.yahoo.document.Field>
The field sets defined for this type and itsSchema
getInherited
(NewDocumentType.Name inherited) Collection<com.yahoo.document.DataType>
getTypes()
Class<com.yahoo.document.Document>
void
inherit
(NewDocumentType inherited) boolean
inherits
(NewDocumentType superType) boolean
isValueCompatible
(com.yahoo.document.datatypes.FieldValue value) replace
(com.yahoo.document.DataType type) Methods inherited from class com.yahoo.document.StructuredDataType
buildFieldPath, createByReflection, createId, equals, getDataTypeName, hashCode, register
Methods inherited from class com.yahoo.document.DataType
clone, compareTo, createFieldValue, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, isAssignableFrom, isMultivalue, isRegistered, 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
-
Constructor Details
-
NewDocumentType
-
NewDocumentType
public NewDocumentType(NewDocumentType.Name name, Set<NewDocumentType.Name> documentReferences, Set<String> importedFieldNames) -
NewDocumentType
-
NewDocumentType
public NewDocumentType(NewDocumentType.Name name, com.yahoo.document.StructDataType contentStruct, FieldSets fs, Set<NewDocumentType.Name> documentReferences, Set<String> importedFieldNames)
-
-
Method Details
-
getFullName
-
getContentStruct
public com.yahoo.document.DataType getContentStruct() -
getInherited
-
getInherited
-
getValueClass
- Specified by:
getValueClass
in classcom.yahoo.document.DataType
-
isValueCompatible
public boolean isValueCompatible(com.yahoo.document.datatypes.FieldValue value) - Specified by:
isValueCompatible
in classcom.yahoo.document.DataType
-
inherit
-
inherits
-
getField
- Specified by:
getField
in classcom.yahoo.document.StructuredDataType
-
containsField
-
getField
public com.yahoo.document.Field getField(int id) - Specified by:
getField
in classcom.yahoo.document.StructuredDataType
-
getAllFields
-
getFields
- Specified by:
getFields
in classcom.yahoo.document.StructuredDataType
-
createFieldValue
public com.yahoo.document.Document createFieldValue()- Specified by:
createFieldValue
in classcom.yahoo.document.StructuredDataType
-
getTypes
- Specified by:
getTypes
in interfaceDataTypeCollection
-
getAllTypes
-
getAnnotations
-
getAllAnnotations
-
getDataType
- Specified by:
getDataType
in interfaceDataTypeCollection
-
getDataType
public com.yahoo.document.DataType getDataType(int id) - Specified by:
getDataType
in interfaceDataTypeCollection
-
getDataTypeRecursive
-
getDataTypeRecursive
public com.yahoo.document.DataType getDataTypeRecursive(int id) -
getAnnotationType
-
add
-
add
-
replace
-
getFieldSets
The field sets defined for this type and itsSchema
-
getDocumentReferences
-
getImportedFieldNames
-
getReferenceDataType
-