public class CollectionSchemaUpdate
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionSchemaUpdate.Type |
| Constructor and Description |
|---|
CollectionSchemaUpdate() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,AddOperation> |
getAddOperations()
Returns a Map of ADD operations which have a non-null default value specified.
|
java.util.Map<java.lang.String,DeleteOperation> |
getDeleteOperations()
Returns a Map of DELETE operations.
|
java.util.Map<java.lang.String,RenameOperation> |
getRenameOperations()
Returns a Map of RENAME operations.
|
java.util.Map<java.lang.String,IOperation> |
getUpdateData() |
CollectionSchemaUpdate |
set(java.lang.String key,
IOperation operation)
A method to set a new Operation for a key.
|
static CollectionSchemaUpdate |
update(java.lang.String key,
IOperation operation)
Static factory method to create an CollectionUpdate for the specified key
|
public static CollectionSchemaUpdate update(java.lang.String key, IOperation operation)
key: - JSON attribute to updateoperation: - operation to carry out on the attributepublic CollectionSchemaUpdate set(java.lang.String key, IOperation operation)
key - (a.k.a JSON Field name) for which operation is being addedoperation - operation to performpublic java.util.Map<java.lang.String,IOperation> getUpdateData()
public java.util.Map<java.lang.String,AddOperation> getAddOperations()
public java.util.Map<java.lang.String,RenameOperation> getRenameOperations()
public java.util.Map<java.lang.String,DeleteOperation> getDeleteOperations()