Uses of Class
com.yahoo.document.annotation.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
Modifier and TypeMethodDescriptionAnnotationReference.getReference()
Returns the Annotation that this AnnotationReference refers to.Modifier 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.Modifier 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.ModifierConstructorDescriptionAnnotation
(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
Modifier and TypeMethodDescriptionvoid
AnnotationReader.read
(Annotation annotation) void
VespaDocumentDeserializer6.read
(Annotation annotation) void
AnnotationWriter.write
(Annotation annotation) void
VespaDocumentSerializer6.write
(Annotation annotation)