public class AppendableBulkOutput extends BulkOutput
_bulk
Constructor and Description |
---|
AppendableBulkOutput(java.lang.String jobName,
java.lang.String bulkId,
BulkType bulkType)
create instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addMicroBulk(byte[] microBulk,
java.lang.Integer numberOfRecords)
put a micro bulk to the bulk.
|
void |
addRecord(Record record)
put a record to the bulk.
|
void |
commit()
committing the output.
|
long |
getBytesWritten()
get the number of bytes written.
|
boolean |
isTimedOut() |
getBulk, getBulkSizeLimit, getBulkStartTime, getBulkType, getCommitTimeout, getCurrentBulkId, getJobName, getLastModificationTime, getOutput, hasGrownBeyondLimit, setBulk, setBulkSizeLimit, setCommitTimeout, setCurrentBulkId, setLastModificationTime
public AppendableBulkOutput(java.lang.String jobName, java.lang.String bulkId, BulkType bulkType)
public void addRecord(Record record) throws BulkbuilderException
addRecord
in class BulkOutput
BulkbuilderException
public void addMicroBulk(byte[] microBulk, java.lang.Integer numberOfRecords) throws BulkbuilderException
BulkbuilderException
public void commit()
BulkOutput
commit
in class BulkOutput
public long getBytesWritten()
getBytesWritten
in class BulkOutput
public boolean isTimedOut()
isTimedOut
in class BulkOutput
true
if the bulk has timed out (if a timeout is set).