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
Nested Classes -
Field Summary
Fields inherited from class com.yahoo.document.StructuredDataType
classIdFields inherited from class com.yahoo.document.DataType
BOOL, BYTE, DOCUMENT, DOUBLE, FLOAT, FLOAT16, INT, LONG, NONE, PREDICATE, RAW, STRING, TAG, tensorDataTypeCode, URI -
Constructor Summary
ConstructorsConstructorDescriptionNewDocumentType(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) booleancontainsField(String fieldName) com.yahoo.document.DocumentCollection<com.yahoo.document.annotation.AnnotationType>Collection<com.yahoo.document.Field>Collection<com.yahoo.document.annotation.AnnotationType>com.yahoo.document.annotation.AnnotationTypegetAnnotationType(String name) com.yahoo.document.DataTypecom.yahoo.document.DataTypegetDataType(int id) com.yahoo.document.DataTypegetDataType(String name) com.yahoo.document.DataTypegetDataTypeRecursive(int id) com.yahoo.document.DataTypegetDataTypeRecursive(String name) com.yahoo.document.FieldgetField(int id) com.yahoo.document.FieldCollection<com.yahoo.document.Field>The field sets defined for this type and itsSchemagetInherited(NewDocumentType.Name inherited) Collection<com.yahoo.document.DataType>getTypes()Class<com.yahoo.document.Document>voidinherit(NewDocumentType inherited) booleaninherits(NewDocumentType superType) booleanisValueCompatible(com.yahoo.document.datatypes.FieldValue value) replace(com.yahoo.document.DataType type) toString()Methods inherited from class com.yahoo.document.StructuredDataType
buildFieldPath, createByReflection, createId, equals, getDataTypeName, hashCode, registerMethods inherited from class com.yahoo.document.DataType
clone, compareTo, createFieldValue, 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
-
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:
getValueClassin classcom.yahoo.document.DataType
-
isValueCompatible
public boolean isValueCompatible(com.yahoo.document.datatypes.FieldValue value) - Specified by:
isValueCompatiblein classcom.yahoo.document.DataType
-
inherit
-
inherits
-
getField
- Specified by:
getFieldin classcom.yahoo.document.StructuredDataType
-
containsField
-
getField
public com.yahoo.document.Field getField(int id) - Specified by:
getFieldin classcom.yahoo.document.StructuredDataType
-
getAllFields
-
getFields
- Specified by:
getFieldsin classcom.yahoo.document.StructuredDataType
-
createFieldValue
public com.yahoo.document.Document createFieldValue()- Specified by:
createFieldValuein classcom.yahoo.document.StructuredDataType
-
getTypes
- Specified by:
getTypesin interfaceDataTypeCollection
-
getAllTypes
-
getAnnotations
-
getAllAnnotations
-
getDataType
- Specified by:
getDataTypein interfaceDataTypeCollection
-
getDataType
public com.yahoo.document.DataType getDataType(int id) - Specified by:
getDataTypein 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
-
toString
- Overrides:
toStringin classcom.yahoo.document.DataType
-