Package | Description |
---|---|
com.yahoo.document | |
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.datatypes | |
com.yahoo.document.serialization |
Modifier and Type | Method and Description |
---|---|
Map<String,SpanTree> |
ExtendedStringField.ExtractSpanTrees.get(StructuredFieldValue doc) |
Modifier and Type | Method and Description |
---|---|
void |
ExtendedStringField.ExtractSpanTrees.set(StructuredFieldValue doc,
Map<String,SpanTree> trees) |
Modifier and Type | Method and Description |
---|---|
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.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 |
SpanTree.annotate(SpanNode node,
AnnotationType type,
FieldValue value)
Adds an Annotation.
|
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.
|
private SpanTree |
SpanNode.getNonNullSpanTree()
Returns the SpanTree this belongs to and throws a nice NullPointerException if none
|
SpanTree |
SpanNodeParent.getSpanTree()
Returns the SpanTree of this, if any.
|
SpanTree |
SpanTree.getSpanTree()
Returns itself. Needed for this class to be able to be a parent of SpanNodes.
|
SpanTree |
SpanNode.getSpanTree()
Returns the SpanTree that this node belongs to, if any.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
SpanTree.annotationsEquals(SpanTree tree) |
int |
SpanTree.compareTo(SpanTree spanTree) |
private static IdentityHashMap<SpanNode,Integer> |
SpanTree.getSpanNodes(SpanTree otherToCopy) |
Constructor and Description |
---|
SpanTree(SpanTree otherToCopy) |
Modifier and Type | Field and Description |
---|---|
private Map<String,SpanTree> |
StringFieldValue.spanTrees |
Modifier and Type | Method and Description |
---|---|
SpanTree |
StringFieldValue.getSpanTree(String name)
Returns the span tree associated with the given name, or null if this does not exist.
|
SpanTree |
StringFieldValue.removeSpanTree(String name)
Removes the span tree associated with the given name.
|
SpanTree |
StringFieldValue.setSpanTree(SpanTree spanTree)
Sets the span tree with annotations over this String.
|
Modifier and Type | Method and Description |
---|---|
Map<String,SpanTree> |
StringFieldValue.getSpanTreeMap() |
Collection<SpanTree> |
StringFieldValue.getSpanTrees()
Returns an unmodifiable Collection of the span trees with annotations over this String, if any.
|
Modifier and Type | Method and Description |
---|---|
SpanTree |
StringFieldValue.setSpanTree(SpanTree spanTree)
Sets the span tree with annotations over this String.
|
Modifier and Type | Method and Description |
---|---|
void |
VespaDocumentDeserializer42.read(SpanTree tree)
Deprecated.
|
void |
SpanTreeReader.read(SpanTree tree) |
private void |
VespaDocumentDeserializer42.readSpanTree(SpanTree tree,
boolean readName)
Deprecated.
|
void |
SpanTreeWriter.write(SpanTree tree) |
void |
VespaDocumentSerializer42.write(SpanTree tree)
Deprecated.
|
Copyright © 2018. All rights reserved.