public final class KeyValuePairs extends Object
Map
where
you can add element, but duplicate elements make the values an array.
It also supports adding KeyValuePairs
as value, in which case an object is created in the resulting JSON.Constructor and Description |
---|
KeyValuePairs() |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object... values) |
void |
add(String key,
Object value) |
boolean |
isEmpty() |
void |
serializeToContentBuilder(org.elasticsearch.common.xcontent.XContentBuilder builder)
Serializes the object to a sequence of fields.
|
int |
size() |
String |
toString() |
public int size()
public boolean isEmpty()
public void serializeToContentBuilder(org.elasticsearch.common.xcontent.XContentBuilder builder) throws IOException
null
.IOException
Copyright ©2007-2013 panFMP Developers c/o Uwe Schindler