public class OperationMemoryManager
extends java.lang.Object
TODO: We can latter look into making the operation manager typed. Based on the messageType TODO: Then the get methods such as the iterator can directly return the typed objects
Constructor and Description |
---|
OperationMemoryManager(int opID,
DataMessageType type,
DataMessageType keyType,
MemoryManager parentMM) |
OperationMemoryManager(int opID,
DataMessageType type,
MemoryManager parentMM) |
Modifier and Type | Method and Description |
---|---|
boolean |
append(java.nio.ByteBuffer key,
java.nio.ByteBuffer value) |
boolean |
append(java.lang.String key,
java.nio.ByteBuffer value) |
boolean |
close(java.nio.ByteBuffer key) |
boolean |
close(java.lang.String key) |
boolean |
containsKey(java.nio.ByteBuffer key) |
boolean |
containsKey(java.lang.String key) |
boolean |
delete(java.nio.ByteBuffer key) |
boolean |
delete(java.lang.String key) |
boolean |
flush() |
boolean |
flush(java.nio.ByteBuffer key) |
boolean |
flush(java.lang.String key) |
java.nio.ByteBuffer |
get(java.nio.ByteBuffer key) |
java.nio.ByteBuffer |
get(java.lang.String key) |
DataMessageType |
getKeyType() |
MemoryManager |
getMemoryManager() |
DataMessageType |
getMessageType() |
int |
getOperationID() |
boolean |
init() |
boolean |
isKeyed() |
java.util.Iterator<java.lang.Object> |
iterator()
returns the deserialized data as a iterator
if the operation is keyed the iterator will return a list of pairs
if the operation is not keyed it will return a list of objects
|
java.util.Iterator<java.lang.Object> |
iterator(java.nio.ByteOrder order) |
boolean |
put(byte[] key,
byte[] data) |
boolean |
put(java.nio.ByteBuffer key,
java.nio.ByteBuffer value) |
boolean |
put(java.lang.String key,
java.nio.ByteBuffer value) |
void |
setKeyed(boolean keyed) |
void |
setKeyType(DataMessageType keyType) |
void |
setMemoryManager(MemoryManager memoryManager) |
void |
setMessageType(DataMessageType messageType) |
void |
setOperationID(int operationID) |
public OperationMemoryManager(int opID, DataMessageType type, MemoryManager parentMM)
public OperationMemoryManager(int opID, DataMessageType type, DataMessageType keyType, MemoryManager parentMM)
public boolean init()
public boolean append(java.nio.ByteBuffer key, java.nio.ByteBuffer value)
public boolean append(java.lang.String key, java.nio.ByteBuffer value)
public boolean put(java.nio.ByteBuffer key, java.nio.ByteBuffer value)
public boolean put(byte[] key, byte[] data)
public boolean put(java.lang.String key, java.nio.ByteBuffer value)
public java.nio.ByteBuffer get(java.nio.ByteBuffer key)
public java.nio.ByteBuffer get(java.lang.String key)
public boolean containsKey(java.nio.ByteBuffer key)
public boolean containsKey(java.lang.String key)
public boolean delete(java.nio.ByteBuffer key)
public boolean delete(java.lang.String key)
public boolean flush(java.nio.ByteBuffer key)
public boolean flush()
public boolean flush(java.lang.String key)
public boolean close(java.nio.ByteBuffer key)
public boolean close(java.lang.String key)
public int getOperationID()
public void setOperationID(int operationID)
public MemoryManager getMemoryManager()
public void setMemoryManager(MemoryManager memoryManager)
public java.util.Iterator<java.lang.Object> iterator()
public java.util.Iterator<java.lang.Object> iterator(java.nio.ByteOrder order)
public DataMessageType getKeyType()
public void setKeyType(DataMessageType keyType)
public DataMessageType getMessageType()
public void setMessageType(DataMessageType messageType)
public boolean isKeyed()
public void setKeyed(boolean keyed)