Uses of Class
com.yahoo.document.annotation.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
Modifier and TypeFieldDescriptionstatic final AnnotationType
AnnotationTypes.CANONICAL
static final AnnotationType
AnnotationTypes.NORMALIZED
static final AnnotationType
AnnotationTypes.PROXIMITY_BREAK
static final AnnotationType
AnnotationTypes.READING
static final AnnotationType
AnnotationTypes.SPECIAL_TOKEN
static final AnnotationType
AnnotationTypes.STEM
static final AnnotationType
AnnotationTypes.TERM
static final AnnotationType
AnnotationTypes.TOKEN_TYPE
static final AnnotationType
AnnotationTypes.TRANSFORMED
Modifier 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.Modifier and TypeMethodDescriptionAnnotationType.getInheritedTypes()
AnnotationTypeRegistry.getTypes()
Returns an unmodifiable of all types registered.Modifier 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.int
AnnotationType.compareTo
(AnnotationType annotationType) void
AnnotationType.inherit
(AnnotationType type) WARNING! Only to be used by the configuration system and in unit tests.boolean
AnnotationType.inherits
(AnnotationType type) void
AnnotationTypeRegistry.register
(AnnotationType type) Register a new annotation type.protected void
AnnotationReferenceDataType.setAnnotationType
(AnnotationType type) Sets the annotation type that this AnnotationReferenceDataType points to.void
Annotation.setType
(AnnotationType type) Sets the type of this annotation.boolean
AnnotationTypeRegistry.unregister
(AnnotationType type) Unregisters the type given by the argument.ModifierConstructorDescriptionAnnotation
(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.