Kinetica C# API
Version 6.2.0.1
|
Manages the insertion into GPUdb of large numbers of records in bulk, with automatic batch management and support for multi-head ingest. More...
Classes | |
class | InsertException |
Public Member Functions | |
KineticaIngestor (Kinetica kdb, string table_name, int batch_size, KineticaType ktype, Dictionary< string, string > options=null, Utils.WorkerList workers=null) | |
Int64 | getCountInserted () |
Returns the count of records inserted so far. More... | |
Int64 | getCountUpdated () |
Returns the count of records updated so far. More... | |
void | flush () |
Ensures that all queued records are inserted into Kinetica. More... | |
void | insert (T record) |
Queues a record for insertion into Kinetica. More... | |
void | insert (IList< T > records) |
Queues a list of records for insertion into Kientica. More... | |
Public Attributes | |
Int64 | count_inserted |
Int64 | count_updated |
Properties | |
Kinetica | kineticaDB [get] |
string | table_name [get] |
int | batch_size [get] |
IDictionary< string, string > | options [get] |
Manages the insertion into GPUdb of large numbers of records in bulk, with automatic batch management and support for multi-head ingest.
Use the insert(record) and insert(List) methods to queue records for insertion, and the flush method to ensure that all queued records have been inserted.
T | The type of object being inserted. |
Definition at line 15 of file KineticaIngestor.cs.
|
inline |
kdb | |
table_name | |
batch_size | |
ktype | |
options | |
workers |
Definition at line 65 of file KineticaIngestor.cs.
|
inline |
Ensures that all queued records are inserted into Kinetica.
If an error occurs while inserting the records from any queue, the recoreds will no longer be in that queue nor in Kinetica; catch InsertException<T> to get the list of records that were being inserted if needed (for example, to retry). Other queues may also still contain unflushed records if this occurs.
InsertException<T> |
Definition at line 205 of file KineticaIngestor.cs.
|
inline |
Returns the count of records inserted so far.
An atomic operation.
Definition at line 179 of file KineticaIngestor.cs.
|
inline |
Returns the count of records updated so far.
An atomic operation.
Definition at line 190 of file KineticaIngestor.cs.
|
inline |
Queues a record for insertion into Kinetica.
If the queue reaches the <member cref="batch_size">, all records in the queue will be inserted into Kinetica before the method returns. If an error occurs while inserting the records, the records will no longer be in the queue nor in Kinetica; catch InsertException<T> to get the list of records that were being inserted if needed (for example, to retry).
record | The record to insert. |
InsertException<T> |
Definition at line 272 of file KineticaIngestor.cs.
|
inline |
Queues a list of records for insertion into Kientica.
If any queue reaches the <member cref="batch_size">, all records in that queue will be inserted into Kinetica before the method returns. If an error occurs while inserting the queued records, the records will no longer be in that queue nor in Kinetica; catch InsertException<T> to get the list of records that were being inserted (including any from the queue in question and any remaining in the list not yet queued) if needed (for example, to retry). Note that depending on the number of records, multiple calls to Kinetica may occur.
records | The records to insert. |
InsertException<T> |
Definition at line 329 of file KineticaIngestor.cs.
Int64 kinetica.KineticaIngestor< T >.count_inserted |
Definition at line 46 of file KineticaIngestor.cs.
Int64 kinetica.KineticaIngestor< T >.count_updated |
Definition at line 47 of file KineticaIngestor.cs.
|
get |
Definition at line 43 of file KineticaIngestor.cs.
|
get |
Definition at line 41 of file KineticaIngestor.cs.
|
get |
Definition at line 44 of file KineticaIngestor.cs.
|
get |
Definition at line 42 of file KineticaIngestor.cs.