Uses of Class
com.yahoo.document.annotation.Annotation
-
Packages that use Annotation Package Description com.yahoo.document.annotation Provides classes and interfaces for creating trees of spans over string values in Vespa documents, and annotating these spans.com.yahoo.document.serialization -
-
Uses of Annotation in com.yahoo.document.annotation
Methods in com.yahoo.document.annotation that return Annotation Modifier and Type Method Description Annotation
AnnotationReference. getReference()
Returns the Annotation that this AnnotationReference refers to.Methods in com.yahoo.document.annotation that return types with arguments of type Annotation Modifier and Type Method Description java.util.Iterator<Annotation>
SpanTree. iterator()
Returns an Iterator over all annotations in this tree. Note that the iteration order is non-deterministic.java.util.Iterator<Annotation>
SpanTree. iterator(SpanNode node)
Returns an Iterator over all annotations that annotate the given node.java.util.Iterator<Annotation>
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 Annotation Modifier and Type Method Description SpanNode
SpanNode. annotate(Annotation annotation)
Convenience method for adding an annotation to this span, same asgetSpanTree().
spanTree.annotate(this,annotation)
SpanTree
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
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.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 Annotation Constructor Description Annotation(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 Annotation Modifier and Type Method Description void
AnnotationReader. read(Annotation annotation)
void
VespaDocumentDeserializer6. read(Annotation annotation)
void
AnnotationWriter. write(Annotation annotation)
void
VespaDocumentSerializer6. write(Annotation annotation)
-