pub struct RawUpdateRecordsRequest
pub table_name: String,
pub expressions: Vec<String>,
pub new_values_maps: Vec<HashMap<String, Option<String>>>,
pub records_to_insert: Vec<ByteBuf>,
pub records_to_insert_str: Vec<String>,
pub record_encoding: String,
pub options: HashMap<String, String>,
The request payload for the /update/records endpoint.
Perform predicate-based updates to table data
Fields
table_name: StringName of table to be updated, in [schema_name.]table_name format, using standard name resolution rules. Must be a currently existing table and not a view.
expressions: Vec<String>A list of the actual predicates, one for each update; format should follow the guidelines here.
new_values_maps: Vec<HashMap<String, Option<String>>>List of new values for the matching records. Each element is a map with (key, value) pairs where the keys are the names of the columns whose values are to be updated; the values are the new values. The number of elements in the list should match the length of expressions.
records_to_insert: Vec<ByteBuf>An optional list of new binary-avro encoded records to insert, one for each update. If one of expressions does not yield a matching record to be updated, then the corresponding element from this list will be added to the table.
records_to_insert_str: Vec<String>An optional list of JSON encoded objects to insert, one for each update, to be added if the particular update did not match any objects.
record_encoding: StringIdentifies which of records_to_insert and records_to_insert_str should be used.
options: HashMap<String, String>Optional parameters.
Trait Implementations
impl Clone for RawUpdateRecordsRequest
fn clone(&self) -> RawUpdateRecordsRequest
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for RawUpdateRecordsRequest
impl<‘de> Deserialize<‘de> for RawUpdateRecordsRequest
fn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D: Deserializer<‘de>,
fn use_compression() -> bool
This endpoint carries bulk record payloads, so its requests are compressed when the client has use_snappy enabled.