public interface Storage
Storage interface.
| Modifier and Type | Field and Description |
|---|---|
static String |
ID
key in the context for Unique identifier for the storage which may be used to recover from failure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean(byte[] identifier)
This is used to clean up the files identified by identifier
|
void |
flush()
This flushes the data from stream
|
byte[] |
retrieve(byte[] identifier)
This returns the data bytes for the current identifier and the identifier for next data bytes.
|
byte[] |
retrieveNext()
This returns data bytes and the identifier for the next data bytes.
|
byte[] |
store(com.datatorrent.netlet.util.Slice bytes)
This stores the bytes and returns the unique identifier to retrieve these bytes
|
static final String ID
byte[] store(com.datatorrent.netlet.util.Slice bytes)
bytes - byte[] retrieve(byte[] identifier)
identifier - byte[] retrieveNext()
void clean(byte[] identifier)
identifier - void flush()
Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.