public class JSONStoreAddOptions
extends java.lang.Object
Constructor and Description |
---|
JSONStoreAddOptions() |
JSONStoreAddOptions(org.json.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSearchField(java.lang.String key,
java.lang.Boolean value)
Add an additional search field for the add operation.
|
void |
addAdditionalSearchField(java.lang.String key,
java.lang.Integer value)
Add an additional search field for the add operation.
|
void |
addAdditionalSearchField(java.lang.String key,
java.lang.Number value)
Add an additional search field for the add operation.
|
void |
addAdditionalSearchField(java.lang.String key,
java.lang.String value)
Add an additional search field for the add operation.
|
void |
addAdditionalSearchFields(org.json.JSONObject additional_search_fields)
Add an additional search field for the add operation.
|
void |
addAdditionalSearchFields(java.util.Map additional_search_fields)
Add multiple additional search fields for the add operation.
|
boolean |
isMarkDirty()
Determine if the mark dirty flag is set or not.
|
void |
setMarkDirty(boolean mark_dirty)
Enable or disable the mark dirty flag.
|
public JSONStoreAddOptions()
public JSONStoreAddOptions(org.json.JSONObject json)
public void addAdditionalSearchFields(org.json.JSONObject additional_search_fields)
additional_search_fields
- A JSONObject that contains key/value pairs for additional search fields.java.lang.IllegalArgumentException
- Thrown if the additional_search_fields parameter is null or empty.public void addAdditionalSearchFields(java.util.Map additional_search_fields)
additional_search_fields
- A Map that contains key/value pairs for additional search fields.java.lang.IllegalArgumentException
- Thrown if the additional_search_fields parameter is null or empty.public void addAdditionalSearchField(java.lang.String key, java.lang.String value) throws java.lang.IllegalArgumentException
key
- The key of additional search field to include with the document.value
- The value of additional search field for 'key' to include with the
document.java.lang.IllegalArgumentException
- Thrown if the key or value parameter is null.public void addAdditionalSearchField(java.lang.String key, java.lang.Integer value) throws java.lang.IllegalArgumentException
key
- The key of additional search field to include with the document.value
- The value of additional search field for 'key' to include with the
document.java.lang.IllegalArgumentException
- Thrown if the key or value parameter is null.public void addAdditionalSearchField(java.lang.String key, java.lang.Number value) throws java.lang.IllegalArgumentException
key
- The key of additional search field to include with the document.value
- The value of additional search field for 'key' to include with the
document.java.lang.IllegalArgumentException
- Thrown if the key or value parameter is null.public void addAdditionalSearchField(java.lang.String key, java.lang.Boolean value)
key
- The key of additional search field to include with the document.value
- The value of additional search field for 'key' to include with the
document.java.lang.IllegalArgumentException
- Thrown if the key or value parameter is null.public void setMarkDirty(boolean mark_dirty)
mark_dirty
- If true, the document that is added will be marked dirty when it is added.public boolean isMarkDirty()
JSONStoreAddOptions.setMarkDirty(boolean)
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.