public class Stash
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContent
Constructor and Description |
---|
Stash() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the previously stashed values
|
boolean |
containsStashedValue(java.lang.Object key)
Tells whether a particular key needs to be looked up in the stash based on its name.
|
java.lang.Object |
getValue(java.lang.String key)
Retrieves a value from the current stash.
|
java.util.Map<java.lang.String,java.lang.Object> |
replaceStashedValues(java.util.Map<java.lang.String,java.lang.Object> map)
Goes recursively against each map entry and replaces any string value starting with "$" with its
corresponding value retrieved from the stash
|
void |
stashValue(java.lang.String key,
java.lang.Object value)
Allows to saved a specific field in the stash as key-value pair
|
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
public static final Stash EMPTY
public void stashValue(java.lang.String key, java.lang.Object value)
public void clear()
public boolean containsStashedValue(java.lang.Object key)
public java.lang.Object getValue(java.lang.String key) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.String,java.lang.Object> replaceStashedValues(java.util.Map<java.lang.String,java.lang.Object> map) throws java.io.IOException
java.io.IOException
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
toXContent
in interface org.elasticsearch.common.xcontent.ToXContent
java.io.IOException