Uses of Class
com.yahoo.document.annotation.SpanTree
Packages that use 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
Methods in com.yahoo.document that return types with arguments of type SpanTreeModifier and TypeMethodDescriptionExtendedStringField.ExtractSpanTrees.get
(StructuredFieldValue doc) Method parameters in com.yahoo.document with type arguments of type SpanTreeModifier and TypeMethodDescriptionvoid
ExtendedStringField.ExtractSpanTrees.set
(StructuredFieldValue doc, Map<String, SpanTree> trees) -
Uses of SpanTree in com.yahoo.document.annotation
Methods in com.yahoo.document.annotation that return SpanTreeModifier 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.Methods in com.yahoo.document.annotation with parameters of type SpanTreeConstructors in com.yahoo.document.annotation with parameters of type SpanTree -
Uses of SpanTree in com.yahoo.document.datatypes
Methods in com.yahoo.document.datatypes that return SpanTreeModifier 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.Methods in com.yahoo.document.datatypes that return types with arguments of type SpanTreeModifier 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.Methods in com.yahoo.document.datatypes with parameters of type SpanTreeModifier and TypeMethodDescriptionStringFieldValue.setSpanTree
(SpanTree spanTree) Sets the span tree with annotations over this String. -
Uses of SpanTree in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization with parameters of type SpanTree