Uses of Class
com.yahoo.document.annotation.AnnotationType
Packages that use AnnotationType
Package
Description
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
-
Uses of AnnotationType in com.yahoo.document.annotation
Fields in com.yahoo.document.annotation declared as AnnotationTypeModifier and TypeFieldDescriptionstatic final AnnotationTypeAnnotationTypes.CANONICALstatic final AnnotationTypeAnnotationTypes.NORMALIZEDstatic final AnnotationTypeAnnotationTypes.PROXIMITY_BREAKstatic final AnnotationTypeAnnotationTypes.READINGstatic final AnnotationTypeAnnotationTypes.SPECIAL_TOKENstatic final AnnotationTypeAnnotationTypes.STEMstatic final AnnotationTypeAnnotationTypes.TERMstatic final AnnotationTypeAnnotationTypes.TOKEN_TYPEstatic final AnnotationTypeAnnotationTypes.TRANSFORMEDFields in com.yahoo.document.annotation with type parameters of type AnnotationTypeMethods in com.yahoo.document.annotation that return AnnotationTypeModifier and TypeMethodDescriptionAnnotationReferenceDataType.getAnnotationType()Returns the annotation type of this AnnotationReferenceDataType.Annotation.getType()Returns the type of this annotation.AnnotationTypeRegistry.getType(int id) Returns an annotation type with the given id.Returns an annotation type with the given name.Methods in com.yahoo.document.annotation that return types with arguments of type AnnotationTypeModifier and TypeMethodDescriptionAnnotationType.getInheritedTypes()AnnotationTypeRegistry.getTypes()Returns an unmodifiable of all types registered.Methods in com.yahoo.document.annotation with parameters of type AnnotationTypeModifier and TypeMethodDescriptionSpanNode.annotate(AnnotationType type) Convenience method for adding an annotation with no value to this span, same asgetSpanTree().spanTree.annotate(this,type)SpanNode.annotate(AnnotationType type, FieldValue value) Convenience method for adding an annotation to this span, same asgetSpanTree().spanTree.annotate(this,type,value)SpanNode.annotate(AnnotationType type, Integer value) Convenience method for adding an annotation to this span, same asgetSpanTree().spanTree.annotate(this,type,new IntegerFieldValue(value))SpanNode.annotate(AnnotationType type, String value) Convenience method for adding an annotation to this span, same asgetSpanTree().spanTree.annotate(this,type,new StringFieldValue(value))SpanTree.annotate(SpanNode node, AnnotationType type) Creates an Annotation based on the given AnnotationType, and adds it to the internal list of annotations for this SpanTree (convenience method). Use this when adding an Annotation (that does not have a FieldValue) that shall annotate a SpanNode.SpanTree.annotate(SpanNode node, AnnotationType type, FieldValue value) Adds an Annotation.intAnnotationType.compareTo(AnnotationType annotationType) voidAnnotationType.inherit(AnnotationType type) WARNING!booleanAnnotationType.inherits(AnnotationType type) voidAnnotationTypeRegistry.register(AnnotationType type) Register a new annotation type.protected voidAnnotationReferenceDataType.setAnnotationType(AnnotationType type) Sets the annotation type that this AnnotationReferenceDataType points to.voidAnnotation.setType(AnnotationType type) Sets the type of this annotation.booleanAnnotationTypeRegistry.unregister(AnnotationType type) Unregisters the type given by the argument.Constructors in com.yahoo.document.annotation with parameters of type AnnotationTypeModifierConstructorDescriptionAnnotation(AnnotationType type) Constructs a new annotation of the specified type.Annotation(AnnotationType type, FieldValue value) Constructs a new annotation of the specified type, and having the specified value.Creates an AnnotationReferenceDataType with a generated id.AnnotationReferenceDataType(AnnotationType aType, int id) Creates an AnnotationReferenceDataType with a given id.