C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TInsertRowsOptions Struct Reference

Options for NYT::IClient::InsertRows. More...

#include <client_method_options.h>

Inheritance diagram for NYT::TInsertRowsOptions:
NYT::TTabletTransactionOptions< TInsertRowsOptions >

Public Member Functions

TSelf & RequireSyncReplica (bool)
 Whether to overwrite missing columns with nulls.
TSelf & LockType (ELockType)
 Row lock mode acquired on each modified row.
Public Member Functions inherited from NYT::TTabletTransactionOptions< TInsertRowsOptions >
TSelf & Atomicity (EAtomicity)
 Atomicity mode of operation.
TSelf & Durability (EDurability)
 Durability mode of operation.

Detailed Description

Member Function Documentation

◆ LockType()

TSelf & NYT::TInsertRowsOptions::LockType ( ELockType )

Row lock mode acquired on each modified row.

Defaults to NYT::ELockType::Exclusive (server-side default). Set to NYT::ELockType::SharedWrite for concurrent aggregate-column writers.

◆ RequireSyncReplica()

TSelf & NYT::TInsertRowsOptions::RequireSyncReplica ( bool )

Whether to overwrite missing columns with nulls.

By default all columns missing in input data are set to Null and overwrite currently stored value. If `Update' is set to true currently stored value will not be overwritten for columns that are missing in input data. */ TSelf& Update ( bool ); ;

/**

Whether to overwrite or aggregate aggregated columns.

Used with aggregating columns. By default value in aggregating column will be overwritten. If `Aggregate' is set to true row will be considered as delta and it will be aggregated with currently stored value. */ TSelf& Aggregate ( bool ); ;

/**

Whether to fail when inserting to table without sync replica.

Used for insert operation for tables without sync replica. https://ytsaurus.tech/docs/en/user-guide/dynamic-tables/replicated-dynamic-tables#write Default value is 'false'. So insertion into table without sync replicas fails.


The documentation for this struct was generated from the following file: