Uses of Class
com.yahoo.document.annotation.Annotation
Packages that use Annotation
Package
Description
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
-
Uses of Annotation in com.yahoo.document.annotation
Methods in com.yahoo.document.annotation that return AnnotationModifier and TypeMethodDescriptionAnnotationReference.getReference()
Returns the Annotation that this AnnotationReference refers to.Methods in com.yahoo.document.annotation that return types with arguments of type AnnotationModifier and TypeMethodDescriptionSpanTree.iterator()
Returns an Iterator over all annotations in this tree. Note that the iteration order is non-deterministic.Returns an Iterator over all annotations that annotate the given node.SpanTree.iteratorRecursive
(SpanNode node) Returns a recursive Iterator over all annotations that annotate the given node and its subnodes.Methods in com.yahoo.document.annotation with parameters of type AnnotationModifier and TypeMethodDescriptionSpanNode.annotate
(Annotation annotation) Convenience method for adding an annotation to this span, same asgetSpanTree().
spanTree.annotate(this,annotation)
SpanTree.annotate
(Annotation a) Adds an Annotation to the internal list of annotations for this SpanTree. Use this when adding an Annotation that uses an AnnotationReference, and does not annotate a SpanNode.SpanTree.annotate
(SpanNode node, Annotation annotation) Adds an Annotation to the internal list of annotations for this SpanTree. Use this when adding an Annotation that shall annotate a SpanNode.final SpanTree
SpanTree.annotateFast
(SpanNode node, Annotation annotation) Adds an Annotation to the internal list of annotations for this SpanTree. Use this when adding an Annotation that shall annotate a SpanNode.int
Annotation.compareTo
(Annotation annotation) boolean
AnnotationType.isValueCompatible
(Annotation structValue) boolean
SpanTree.remove
(Annotation a) Removes an Annotation from the internal list of annotations.void
AnnotationReference.setReference
(Annotation reference) Set anAnnotation
that this AnnotationReference shall refer to.void
AnnotationReference.setReferenceNoCompatibilityCheck
(Annotation reference) WARNING! Only to be used by deserializers when reference is not fully deserialized yet! Sets anAnnotation
that this AnnotationReference shall refer to.Constructors in com.yahoo.document.annotation with parameters of type AnnotationModifierConstructorDescriptionAnnotation
(Annotation other) Constructs a copy of the input annotation.AnnotationReference
(AnnotationReferenceDataType type, Annotation reference) Constructs a new AnnotationReference, with a reference to the givenAnnotation
. -
Uses of Annotation in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization with parameters of type AnnotationModifier and TypeMethodDescriptionvoid
AnnotationReader.read
(Annotation annotation) void
VespaDocumentDeserializer6.read
(Annotation annotation) void
AnnotationWriter.write
(Annotation annotation) void
VespaDocumentSerializer6.write
(Annotation annotation)