Kinetica   C#   API  Version 7.2.3.1
KineticaAdo.TableBatchContext Class Reference

Manages batch context for a single table using BulkInserter<GenericRecord>. More...

Inherits IAsyncDisposable, and IDisposable.

Public Member Functions

 TableBatchContext (Kinetica kinetica, string tableName, KineticaType ktype, IList< string > insertColumnNames, InsertBatchOptions options)
 
async Task InsertAsync (IList< object?> values, CancellationToken cancellationToken)
 
async Task FlushAsync (CancellationToken cancellationToken=default)
 
List< InsertErrorGetErrors ()
 
void Dispose ()
 
async ValueTask DisposeAsync ()
 

Public Attributes

long CountInserted => _inserter.CountInserted
 
long CountUpdated => _inserter.CountUpdated
 
long PendingBatches => _inserter.PendingBatches
 

Detailed Description

Manages batch context for a single table using BulkInserter<GenericRecord>.

Definition at line 310 of file InsertBatchManager.cs.

Constructor & Destructor Documentation

◆ TableBatchContext()

KineticaAdo.TableBatchContext.TableBatchContext ( Kinetica  kinetica,
string  tableName,
KineticaType  ktype,
IList< string >  insertColumnNames,
InsertBatchOptions  options 
)
inline

Definition at line 320 of file InsertBatchManager.cs.

Member Function Documentation

◆ Dispose()

void KineticaAdo.TableBatchContext.Dispose ( )
inline

Definition at line 590 of file InsertBatchManager.cs.

◆ DisposeAsync()

async ValueTask KineticaAdo.TableBatchContext.DisposeAsync ( )
inline

Definition at line 595 of file InsertBatchManager.cs.

◆ FlushAsync()

async Task KineticaAdo.TableBatchContext.FlushAsync ( CancellationToken  cancellationToken = default)
inline

Definition at line 568 of file InsertBatchManager.cs.

◆ GetErrors()

List<InsertError> KineticaAdo.TableBatchContext.GetErrors ( )

◆ InsertAsync()

async Task KineticaAdo.TableBatchContext.InsertAsync ( IList< object?>  values,
CancellationToken  cancellationToken 
)
inline

Definition at line 437 of file InsertBatchManager.cs.

Member Data Documentation

◆ CountInserted

long KineticaAdo.TableBatchContext.CountInserted => _inserter.CountInserted

Definition at line 316 of file InsertBatchManager.cs.

◆ CountUpdated

long KineticaAdo.TableBatchContext.CountUpdated => _inserter.CountUpdated

Definition at line 317 of file InsertBatchManager.cs.

◆ PendingBatches

long KineticaAdo.TableBatchContext.PendingBatches => _inserter.PendingBatches

Definition at line 318 of file InsertBatchManager.cs.


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