public class PipelineField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATOR |
Constructor and Description |
---|
PipelineField() |
PipelineField(PipelineField another) |
PipelineField(java.lang.String name,
java.lang.Object value) |
PipelineField(java.lang.String name,
java.lang.Object value,
java.util.List<Annotation> annotations) |
PipelineField(java.lang.String name,
java.lang.Object value,
java.util.Map<java.lang.String,java.lang.String> metadata) |
PipelineField(java.lang.String name,
java.lang.Object value,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.util.List<Annotation> annotations) |
PipelineField(java.lang.String name,
java.lang.Object value,
java.lang.String... meta) |
Modifier and Type | Method and Description |
---|---|
PipelineField |
addAnnotation(Annotation annotation) |
PipelineField |
addAnnotations(java.util.Collection<Annotation> annotations) |
PipelineField |
addMetadata(java.lang.String name,
java.lang.String value) |
com.lucidworks.apollo.common.models.nlp.AnnotatedText |
asAnnotatedText()
Return text and annotations as
AnnotatedText instance. |
boolean |
equals(java.lang.Object o) |
Annotation |
getAnnotation(int index) |
java.util.List<Annotation> |
getAnnotations() |
int |
getAnnotationsSize() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getMetadata(java.lang.String name) |
java.util.Set<java.lang.String> |
getMetadataNames() |
java.lang.String |
getName() |
java.lang.Object |
getValue() |
int |
hashCode() |
boolean |
hasMetadata(java.lang.String name) |
PipelineField |
removeAnnotation(int index) |
PipelineField |
removeMetadata(java.lang.String name) |
PipelineField |
setAnnotations(java.util.List<Annotation> annotations) |
PipelineField |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
PipelineField |
setName(java.lang.String name) |
PipelineField |
setValue(java.lang.Object value) |
java.lang.String |
toString() |
public static final java.lang.String CREATOR
public PipelineField()
public PipelineField(java.lang.String name, java.lang.Object value)
public PipelineField(java.lang.String name, java.lang.Object value, java.lang.String... meta)
public PipelineField(java.lang.String name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.String> metadata)
public PipelineField(java.lang.String name, java.lang.Object value, java.util.List<Annotation> annotations)
public PipelineField(PipelineField another)
public PipelineField(java.lang.String name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.String> metadata, java.util.List<Annotation> annotations)
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.lang.String getMetadata(java.lang.String name)
public boolean hasMetadata(java.lang.String name)
public java.util.Set<java.lang.String> getMetadataNames()
public java.util.List<Annotation> getAnnotations()
public Annotation getAnnotation(int index)
public int getAnnotationsSize()
public PipelineField setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public PipelineField addMetadata(java.lang.String name, java.lang.String value)
public PipelineField removeMetadata(java.lang.String name)
public PipelineField setAnnotations(java.util.List<Annotation> annotations)
public PipelineField addAnnotation(Annotation annotation)
public PipelineField addAnnotations(java.util.Collection<Annotation> annotations)
public PipelineField removeAnnotation(int index)
public java.lang.Object getValue()
public PipelineField setValue(java.lang.Object value)
public java.lang.String getName()
public PipelineField setName(java.lang.String name)
public com.lucidworks.apollo.common.models.nlp.AnnotatedText asAnnotatedText()
AnnotatedText
instance.
AnnotatedText
is a container object with convenience methods for
accessing annotations.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object