SMILA (incubation) API documentation

org.eclipse.smila.bulkbuilder.outputs
Class AppendableBulkOutput

java.lang.Object
  extended by org.eclipse.smila.bulkbuilder.outputs.BulkOutput
      extended by org.eclipse.smila.bulkbuilder.outputs.AppendableBulkOutput

public class AppendableBulkOutput
extends BulkOutput

record output for appendable record bulks.


Field Summary
 
Fields inherited from class org.eclipse.smila.bulkbuilder.outputs.BulkOutput
_bulk
 
Constructor Summary
AppendableBulkOutput(java.lang.String jobName, java.lang.String bulkId, BulkType bulkType)
          create instance.
 
Method Summary
 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()
           
 
Methods inherited from class org.eclipse.smila.bulkbuilder.outputs.BulkOutput
getBulk, getBulkSizeLimit, getBulkStartTime, getBulkType, getCommitTimeout, getCurrentBulkId, getJobName, getLastModificationTime, getOutput, hasGrownBeyondLimit, setBulk, setBulkSizeLimit, setCommitTimeout, setCurrentBulkId, setLastModificationTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppendableBulkOutput

public AppendableBulkOutput(java.lang.String jobName,
                            java.lang.String bulkId,
                            BulkType bulkType)
create instance.

Method Detail

addRecord

public void addRecord(Record record)
               throws BulkbuilderException
put a record to the bulk.

Specified by:
addRecord in class BulkOutput
Throws:
BulkbuilderException

addMicroBulk

public void addMicroBulk(byte[] microBulk,
                         java.lang.Integer numberOfRecords)
                  throws BulkbuilderException
put a micro bulk to the bulk.

Throws:
BulkbuilderException

commit

public void commit()
Description copied from class: BulkOutput
committing the output.

Overrides:
commit in class BulkOutput

getBytesWritten

public long getBytesWritten()
get the number of bytes written.

Specified by:
getBytesWritten in class BulkOutput

isTimedOut

public boolean isTimedOut()
Overrides:
isTimedOut in class BulkOutput
Returns:
true if the bulk has timed out (if a timeout is set).

SMILA (incubation) API documentation