Manages the insertion into GPUdb of large numbers of records in bulk, with automatic batch management and support for multi-head ingest.
More...
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.
- Template Parameters
-
T | The type of object being inserted. |
Definition at line 15 of file KineticaIngestor.cs.
void kinetica.KineticaIngestor< T >.flush |
( |
| ) |
|
|
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.
- Exceptions
-
Definition at line 205 of file KineticaIngestor.cs.
void kinetica.KineticaIngestor< T >.insert |
( |
T |
record | ) |
|
|
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).
- Parameters
-
record | The record to insert. |
- Exceptions
-
Definition at line 272 of file KineticaIngestor.cs.
void kinetica.KineticaIngestor< T >.insert |
( |
IList< T > |
records | ) |
|
|
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.
- Parameters
-
records | The records to insert. |
- Exceptions
-
Definition at line 329 of file KineticaIngestor.cs.