Class PipelineField
- java.lang.Object
-
- com.lucidworks.apollo.common.pipeline.PipelineField
-
public class PipelineField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CREATOR
-
Constructor Summary
Constructors Constructor Description PipelineField()
PipelineField(PipelineField another)
PipelineField(java.lang.String name, java.lang.Object value)
PipelineField(java.lang.String name, java.lang.Object value, java.lang.String... meta)
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineField
addAnnotation(Annotation annotation)
PipelineField
addAnnotations(java.util.Collection<Annotation> annotations)
PipelineField
addMetadata(java.lang.String name, java.lang.String value)
AnnotatedText
asAnnotatedText()
Return text and annotations asAnnotatedText
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()
-
-
-
Field Detail
-
CREATOR
public static final java.lang.String CREATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PipelineField
public PipelineField()
-
PipelineField
public PipelineField(java.lang.String name, java.lang.Object value)
-
PipelineField
public PipelineField(java.lang.String name, java.lang.Object value, java.lang.String... meta)
-
PipelineField
public PipelineField(java.lang.String name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.String> metadata)
-
PipelineField
public PipelineField(java.lang.String name, java.lang.Object value, java.util.List<Annotation> annotations)
-
PipelineField
public PipelineField(PipelineField another)
-
PipelineField
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)
-
-
Method Detail
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
-
getMetadata
public java.lang.String getMetadata(java.lang.String name)
-
hasMetadata
public boolean hasMetadata(java.lang.String name)
-
getMetadataNames
public java.util.Set<java.lang.String> getMetadataNames()
-
getAnnotations
public java.util.List<Annotation> getAnnotations()
-
getAnnotation
public Annotation getAnnotation(int index)
-
getAnnotationsSize
public int getAnnotationsSize()
-
setMetadata
public PipelineField setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
-
addMetadata
public PipelineField addMetadata(java.lang.String name, java.lang.String value)
-
removeMetadata
public PipelineField removeMetadata(java.lang.String name)
-
setAnnotations
public PipelineField setAnnotations(java.util.List<Annotation> annotations)
-
addAnnotation
public PipelineField addAnnotation(Annotation annotation)
-
addAnnotations
public PipelineField addAnnotations(java.util.Collection<Annotation> annotations)
-
removeAnnotation
public PipelineField removeAnnotation(int index)
-
getValue
public java.lang.Object getValue()
-
setValue
public PipelineField setValue(java.lang.Object value)
-
getName
public java.lang.String getName()
-
setName
public PipelineField setName(java.lang.String name)
-
asAnnotatedText
public AnnotatedText asAnnotatedText()
Return text and annotations asAnnotatedText
instance.AnnotatedText
is a container object with convenience methods for accessing annotations.- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-