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.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.final SpanTreeSpanTree.annotateFast(SpanNode node, Annotation annotation) Adds an Annotation to the internal list of annotations for this SpanTree.intAnnotation.compareTo(Annotation annotation) booleanAnnotationType.isValueCompatible(Annotation structValue) booleanSpanTree.remove(Annotation a) Removes an Annotation from the internal list of annotations.voidAnnotationReference.setReference(Annotation reference) Set anAnnotationthat this AnnotationReference shall refer to.voidAnnotationReference.setReferenceNoCompatibilityCheck(Annotation reference) WARNING!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 TypeMethodDescriptionvoidAnnotationReader.read(Annotation annotation) voidVespaDocumentDeserializer6.read(Annotation annotation) Deprecated, for removal: This API element is subject to removal in a future version.voidAnnotationWriter.write(Annotation annotation) voidVespaDocumentSerializer6.write(Annotation annotation) Deprecated, for removal: This API element is subject to removal in a future version.