Uses of Class
com.yahoo.document.annotation.AnnotationType
-
Packages that use AnnotationType 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. -
-
Uses of AnnotationType in com.yahoo.document.annotation
Fields in com.yahoo.document.annotation declared as AnnotationType Modifier and Type Field Description static AnnotationType
AnnotationTypes. CANONICAL
static AnnotationType
AnnotationTypes. NORMALIZED
static AnnotationType
AnnotationTypes. PROXIMITY_BREAK
static AnnotationType
AnnotationTypes. READING
static AnnotationType
AnnotationTypes. SPECIAL_TOKEN
static AnnotationType
AnnotationTypes. STEM
static AnnotationType
AnnotationTypes. TERM
static AnnotationType
AnnotationTypes. TOKEN_TYPE
static AnnotationType
AnnotationTypes. TRANSFORMED
Fields in com.yahoo.document.annotation with type parameters of type AnnotationType Modifier and Type Field Description static java.util.List<AnnotationType>
AnnotationTypes. ALL_TYPES
Methods in com.yahoo.document.annotation that return AnnotationType Modifier and Type Method Description AnnotationType
AnnotationReferenceDataType. getAnnotationType()
Returns the annotation type of this AnnotationReferenceDataType.AnnotationType
Annotation. getType()
Returns the type of this annotation.AnnotationType
AnnotationTypeRegistry. getType(int id)
Returns an annotation type with the given id.AnnotationType
AnnotationTypeRegistry. getType(java.lang.String name)
Returns an annotation type with the given name.Methods in com.yahoo.document.annotation that return types with arguments of type AnnotationType Modifier and Type Method Description java.util.Collection<AnnotationType>
AnnotationType. getInheritedTypes()
java.util.Map<java.lang.String,AnnotationType>
AnnotationTypeRegistry. getTypes()
Returns an unmodifiableMap
of all types registered.Methods in com.yahoo.document.annotation with parameters of type AnnotationType Modifier and Type Method Description SpanNode
SpanNode. annotate(AnnotationType type)
Convenience method for adding an annotation with no value to this span, same asgetSpanTree().
spanTree.annotate(this,type)
SpanNode
SpanNode. annotate(AnnotationType type, FieldValue value)
Convenience method for adding an annotation to this span, same asgetSpanTree().
spanTree.annotate(this,type,value)
SpanNode
SpanNode. annotate(AnnotationType type, java.lang.Integer value)
Convenience method for adding an annotation to this span, same asgetSpanTree().
spanTree.annotate(this,type,new IntegerFieldValue(value))
SpanNode
SpanNode. annotate(AnnotationType type, java.lang.String value)
Convenience method for adding an annotation to this span, same asgetSpanTree().
spanTree.annotate(this,type,new StringFieldValue(value))
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.int
AnnotationType. compareTo(AnnotationType annotationType)
void
AnnotationType. inherit(AnnotationType type)
WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.boolean
AnnotationType. inherits(AnnotationType type)
void
AnnotationTypeRegistry. register(AnnotationType type)
Register a new annotation type. WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.protected void
AnnotationReferenceDataType. setAnnotationType(AnnotationType type)
Sets the annotation type that this AnnotationReferenceDataType points to. WARNING! Do not use.void
Annotation. setType(AnnotationType type)
Sets the type of this annotation. BEWARE! Should only be used during deserialization.boolean
AnnotationTypeRegistry. unregister(AnnotationType type)
Unregisters the type given by the argument. WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.Constructors in com.yahoo.document.annotation with parameters of type AnnotationType Constructor Description Annotation(AnnotationType type)
Constructs a new annotation of the specified type.Annotation(AnnotationType type, FieldValue value)
Constructs a new annotation of the specified type, and having the specified value.AnnotationReferenceDataType(AnnotationType aType)
Creates an AnnotationReferenceDataType with a generated id.AnnotationReferenceDataType(AnnotationType aType, int id)
Creates an AnnotationReferenceDataType with a given id.
-