Package com.gpudb

Class BulkInserter<T>

  • Type Parameters:
    T - the type of object being inserted
    All Implemented Interfaces:
    AutoCloseable

    public class BulkInserter<T>
    extends Object
    implements AutoCloseable
    Object that manages the insertion into GPUdb of large numbers of records in bulk, with automatic batch management and support for multi-head ingest. BulkInserter instances are thread safe and may be used from any number of threads simultaneously. Use the insert(Object) and insert(List) methods to queue records for insertion, and the flush() method to ensure that all queued records have been inserted.