public class RecordInput extends Input
Records. You can get single
Record from the objects, one at a time, by calling the getRecord() method. When end-of-stream is
reached, null is returned. You can also access the IpcStreamReader BON parser directly in case you do not
want to read complete records at once. However, you should not mix up getRecord() calls with calls to the
IpcStreamReader as your direct calls will probably confuse the record parsing._objectStore| Constructor and Description |
|---|
RecordInput(BulkInfo dataObject,
ObjectStoreService objectStore)
create instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close BON reader, if open.
|
long |
getBytesRead() |
java.util.Map<java.lang.String,java.lang.Number> |
getCounter()
create basic counter map.
|
Record |
getRecord() |
long |
getRecordCount() |
IpcStreamReader |
getStreamReader() |
java.lang.String |
toString() |
ensureStore, getDataObject, getDurationOpen, getDurationPerform, getObjectName, getObjectStore, getStoreName, startTime, timeOpen, timePerformpublic RecordInput(BulkInfo dataObject, ObjectStoreService objectStore)
public Record getRecord() throws ObjectStoreException, java.io.IOException
ObjectStoreExceptionjava.io.IOExceptionpublic IpcStreamReader getStreamReader() throws ObjectStoreException, java.io.IOException
ObjectStoreExceptionjava.io.IOExceptionpublic long getRecordCount()
getRecord()public long getBytesRead()
StreamInput.getBytesRead()public java.util.Map<java.lang.String,java.lang.Number> getCounter()
IODataObjectgetCounter in class IODataObjectpublic java.lang.String toString()
toString in class java.lang.Object