|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.taskworker.io.IODataObject
org.eclipse.smila.taskworker.output.Output
org.eclipse.smila.taskworker.output.AppendableOutput
public class AppendableOutput
Similar to StreamOutput and
RecordOutput but uses the Append API to create the result object. Works
only if the output bulk info contains a valid Appendable ID.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.taskworker.io.IODataObject |
|---|
_objectStore |
| Constructor Summary | |
|---|---|
AppendableOutput(BulkInfo dataObject,
ObjectStoreService objectStore)
|
|
| Method Summary | |
|---|---|
void |
abort()
method for aborting the stream when not committing it. |
void |
append(byte[] data)
append bytes. |
void |
append(byte[] data,
java.lang.Integer numberOfRecords)
append bytes. |
void |
appendAny(Any object)
append an Any record converted to BON to the data object. |
void |
appendRecord(Record record)
append a Record converted to BON to the data object. |
void |
commit()
finalize the Appendable object. |
long |
getBytesWritten()
|
java.util.Map<java.lang.String,java.lang.Number> |
getCounter()
create basic counter map. |
long |
getRecordCount()
number of Records (or Anys) appended. |
| Methods inherited from class org.eclipse.smila.taskworker.io.IODataObject |
|---|
ensureStore, getDataObject, getDurationOpen, getDurationPerform, getObjectName, getObjectStore, getStoreName, startTime, timeOpen, timePerform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppendableOutput(BulkInfo dataObject,
ObjectStoreService objectStore)
dataObject - The data objectobjectStore - The reference to the object store service| Method Detail |
|---|
public void append(byte[] data)
throws ObjectStoreException
ObjectStoreException
public void append(byte[] data,
java.lang.Integer numberOfRecords)
throws ObjectStoreException
ObjectStoreException
public void appendRecord(Record record)
throws ObjectStoreException,
java.io.IOException
Record converted to BON to the data object.
ObjectStoreException
java.io.IOException
public void appendAny(Any object)
throws ObjectStoreException,
java.io.IOException
Any record converted to BON to the data object.
ObjectStoreException
java.io.IOException
public void commit()
throws ObjectStoreException
commit in class OutputObjectStoreException
public void abort()
throws ObjectStoreException
abort in class OutputObjectStoreExceptionpublic long getBytesWritten()
public long getRecordCount()
public java.util.Map<java.lang.String,java.lang.Number> getCounter()
IODataObject
getCounter in class IODataObject
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||