Package com.datastax.astra.client.model
Class Updates
java.lang.Object
com.datastax.astra.client.model.Updates
Helper for Syntax with updates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
Initialize anwith the key and value.
static Update
updateCurrentDate
(String... fields) Initialize anwith the key and value.
static Update
updateSetOnInsert
(Map<String, Double> fields) Initialize anwith the key and value.
-
Method Details
-
set
Initialize anwith the key and value.
- Parameters:
field
- field namevalue
- new value- Returns:
- update object
-
min
Initialize anwith the key and value.
- Parameters:
field
- field namevalue
- new value- Returns:
- update object
-
inc
Initialize anwith the key and value.
- Parameters:
field
- field namevalue
- new value incremented- Returns:
- update object
-
rename
Initialize anwith the key and value.
- Parameters:
field
- field namenewName
- new name- Returns:
- update object
-
unset
Initialize anwith the key and value.
- Parameters:
field
- field name- Returns:
- update object
-
updateSetOnInsert
Initialize anwith the key and value.
- Parameters:
fields
- map of fields- Returns:
- update object
-
updateCurrentDate
Initialize anwith the key and value.
- Parameters:
fields
- map of fields- Returns:
- update object
-
addToSet
Initialize anwith the key and value.
- Parameters:
key
- field namevalue
- field value- Returns:
- update object
-
push
Initialize anwith the key and value.
- Parameters:
key
- field namevalue
- field value- Returns:
- update object
-
pop
Initialize anwith the key and value.
- Parameters:
key
- field namevalue
- field value- Returns:
- update object
-
pushEach
Initialize anwith the key and value.
- Parameters:
key
- field namevalues
- list of field valuesposition
- position to insert- Returns:
- update object
-