Uses of Class
com.yahoo.document.annotation.SpanTree
Package
Description
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
-
Uses of SpanTree in com.yahoo.document
Modifier and TypeMethodDescriptionExtendedStringField.ExtractSpanTrees.get
(StructuredFieldValue doc) Modifier and TypeMethodDescriptionvoid
ExtendedStringField.ExtractSpanTrees.set
(StructuredFieldValue doc, Map<String, SpanTree> trees) -
Uses of SpanTree in com.yahoo.document.annotation
Modifier and TypeMethodDescriptionSpanTree.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.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.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.SpanNode.getSpanTree()
Returns the SpanTree that this node belongs to, if any.SpanNodeParent.getSpanTree()
Returns the SpanTree of this, if any.SpanTree.getSpanTree()
Returns itself. Needed for this class to be able to be a parent of SpanNodes. -
Uses of SpanTree in com.yahoo.document.datatypes
Modifier and TypeMethodDescriptionStringFieldValue.getSpanTree
(String name) Returns the span tree associated with the given name, or null if this does not exist.StringFieldValue.removeSpanTree
(String name) Removes the span tree associated with the given name.StringFieldValue.setSpanTree
(SpanTree spanTree) Sets the span tree with annotations over this String.Modifier and TypeMethodDescriptionStringFieldValue.getSpanTreeMap()
Returns the map of spantrees.StringFieldValue.getSpanTrees()
Returns an unmodifiable Collection of the span trees with annotations over this String, if any.Modifier and TypeMethodDescriptionStringFieldValue.setSpanTree
(SpanTree spanTree) Sets the span tree with annotations over this String. -
Uses of SpanTree in com.yahoo.document.serialization