All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
PipelineDocument |
addCommand(Command c) |
PipelineDocument |
addCommand(String cmd,
Map<String,String> params) |
void |
addCommands(List<Command> commands) |
PipelineDocument |
addField(PipelineField fld) |
PipelineDocument |
addField(String name,
Object value)
This will add a field to the document.
|
PipelineDocument |
addField(String name,
Object value,
List<Annotation> annotations) |
PipelineDocument |
addField(String name,
Object value,
String... meta) |
PipelineDocument |
addFieldIfDifferent(PipelineField fld) |
PipelineDocument |
addFieldIfDifferent(String name,
Object value,
List<Annotation> annotations) |
PipelineDocument |
addFieldIfDifferent(String name,
Object value,
String... meta) |
PipelineDocument |
addFields(Collection<PipelineField> fields) |
Aggregatable |
addFields(String field,
Collection<?> values) |
PipelineDocument |
addHint(String name,
String tag) |
PipelineDocument |
addHints(String name,
Collection<String> tags) |
PipelineDocument |
addHints(String name,
String... tags) |
PipelineDocument |
addMetadata(String name,
String value) |
Aggregatable |
clear() |
void |
copyField(String src,
String dest) |
PipelineDocument |
copyOf() |
boolean |
equals(Object o) |
Set<String> |
getAllFieldNames()
This method returns all field names, including those that
are reserved for internal use.
|
List<Command> |
getCommands() |
byte[] |
getContent() |
Set<String> |
getFieldNames()
This method returns a subset of field names excluding those that
are reserved for internal use.
|
Map<String,List<PipelineField>> |
getFields()
Return all fields as an (unmodifiable) Map.
|
List<PipelineField> |
getFields(String name) |
List<Object> |
getFieldValues(String name) |
Set<String> |
getFilteredFieldNames(String... excludePrefixes)
Returns a filtered subset of field names, where names that
start with one of excludePrefixes are excluded.
|
PipelineField |
getFirstField(String name) |
Object |
getFirstFieldValue(String name) |
List<PipelineField> |
getFlattenedFields() |
Map<String,Set<String>> |
getHints() |
Set<String> |
getHints(String name) |
String |
getId() |
PipelineField |
getLastField(String name) |
Map<String,String> |
getMetadata() |
String |
getMetadata(String name) |
Set<String> |
getMetadataNames() |
Set<String> |
getReservedFieldNames()
This method returns a subset of field names that are reserved for internal use,
i.e.
|
boolean |
hasField(String name)
Return true if this document has the given field.
|
int |
hashCode() |
boolean |
hasHint(String name,
String tag) |
boolean |
hasMetadata(String name) |
static String |
metadataKey(String type,
String name,
String... additionalNames)
Prefix a key with our reserved prefix F_RESERVED_PREFIX and join remaining parts with underscores
|
static PipelineDocument |
newCommit() |
static PipelineDocument |
newCommit(Map<String,String> params) |
static PipelineDocument |
newDelete(String id,
boolean commit) |
static PipelineDocument |
newDelete(String id,
int commitWithin) |
static PipelineDocument |
newDeleteById(String id,
Map<String,String> inputParams) |
static PipelineDocument |
newDeleteByQuery(String query,
boolean commit) |
static PipelineDocument |
newDeleteByQuery(String query,
Map<String,String> inputParams) |
static PipelineDocument |
newDocument() |
static PipelineDocument |
newDocument(String id) |
static PipelineDocument |
newOptimize(Map<String,String> params) |
Set<String> |
removeAllHints(String name) |
PipelineDocument |
removeCommands() |
PipelineDocument |
removeFields(String name)
Remove all fields from document that match the given field name.
|
boolean |
removeHint(String name,
String tag) |
boolean |
removeHints(String name,
Collection<String> tags) |
boolean |
removeHints(String name,
String... tags) |
PipelineDocument |
removeMetadata(String name) |
void |
renameField(String name,
String newName) |
void |
setContent(byte[] data) |
PipelineDocument |
setField(String name,
Object value)
Set the value of the given field to the given value.
|
PipelineDocument |
setField(String name,
Object value,
List<Annotation> annotations) |
PipelineDocument |
setField(String name,
Object value,
String... meta) |
void |
setFields(Map<String,List<PipelineField>> fields)
Set all fields for this document by clearing existing fields and adding
all content from the given fields Map.
|
Aggregatable |
setFields(String field,
Collection<?> values) |
PipelineDocument |
setHints(String name,
Collection<String> tags) |
PipelineDocument |
setHints(String name,
String... tags) |
PipelineDocument |
setId(String id) |
void |
setMetadata(Map<String,String> metadata) |
PipelineDocument |
setUpdateModifier(String fieldName,
UpdateModifier updateModifier) |
String |
toString() |