public interface MemoryManager
| Modifier and Type | Method and Description | 
|---|---|
OperationMemoryManager | 
addOperation(int opID,
            DataMessageType type)
Add an memory manager instance for the given operation 
 | 
OperationMemoryManager | 
addOperation(int opID,
            DataMessageType messageType,
            DataMessageType keyType)  | 
boolean | 
append(int opID,
      java.nio.ByteBuffer key,
      java.nio.ByteBuffer value)
Appends the given byte buffer to the current value in the store. 
 | 
boolean | 
append(int opID,
      java.lang.String key,
      java.nio.ByteBuffer value)  | 
boolean | 
close(int opID,
     java.nio.ByteBuffer key)
flush and close the given key. 
 | 
boolean | 
close(int opID,
     java.lang.String key)  | 
boolean | 
containsKey(int opID,
           java.nio.ByteBuffer key)
checks if the given key is in the memory manager 
 | 
boolean | 
containsKey(int opID,
           java.lang.String key)
checks if the given key is in the memory manager 
 | 
boolean | 
delete(int opID,
      java.nio.ByteBuffer key)
delete the given key from the store 
 | 
boolean | 
delete(int opID,
      java.lang.String key)
delete the given key from the store 
 | 
boolean | 
flush(int opID)  | 
boolean | 
flush(int opID,
     java.nio.ByteBuffer key)
Flush all the data into the store. 
 | 
boolean | 
flush(int opID,
     java.lang.String key)  | 
java.nio.ByteBuffer | 
get(int opID,
   java.nio.ByteBuffer key)
Get the corresponding value as ByteBuffer for the given key from the store 
 | 
java.nio.ByteBuffer | 
get(int opID,
   java.lang.String key)
Get the corresponding value as ByteBuffer for the given key from the store 
 | 
java.util.Iterator<java.lang.Object> | 
getIterator(int opID,
           DataMessageType keyType,
           DataMessageType valueType,
           KryoSerializer deSerializer,
           java.nio.ByteOrder order)  | 
java.util.Iterator<java.lang.Object> | 
getIterator(int opID,
           DataMessageType valueType,
           KryoSerializer deSerializer,
           java.nio.ByteOrder order)  | 
boolean | 
init()
Initializes the Memory manager 
 | 
boolean | 
put(int opID,
   byte[] key,
   byte[] data)  | 
boolean | 
put(int opID,
   java.nio.ByteBuffer key,
   java.nio.ByteBuffer value)
Stores the give key value pair in the memory manager 
 | 
boolean | 
put(int opID,
   java.lang.String key,
   java.nio.ByteBuffer value)
Stores the give key value pair in the memory manager 
 | 
boolean | 
removeOperation(int opID)
Remove an operation from the memory manager. 
 | 
boolean init()
boolean append(int opID,
               java.nio.ByteBuffer key,
               java.nio.ByteBuffer value)
opID - id value of the operationkey - key to append tovalue - value to be appendedboolean append(int opID,
               java.lang.String key,
               java.nio.ByteBuffer value)
boolean put(int opID,
            java.nio.ByteBuffer key,
            java.nio.ByteBuffer value)
boolean put(int opID,
            byte[] key,
            byte[] data)
boolean put(int opID,
            java.lang.String key,
            java.nio.ByteBuffer value)
java.nio.ByteBuffer get(int opID,
                        java.nio.ByteBuffer key)
java.nio.ByteBuffer get(int opID,
                        java.lang.String key)
boolean containsKey(int opID,
                    java.nio.ByteBuffer key)
key - key to be checkedboolean containsKey(int opID,
                    java.lang.String key)
key - key to be checkedboolean delete(int opID,
               java.nio.ByteBuffer key)
boolean delete(int opID,
               java.lang.String key)
OperationMemoryManager addOperation(int opID, DataMessageType type)
OperationMemoryManager addOperation(int opID, DataMessageType messageType, DataMessageType keyType)
boolean removeOperation(int opID)
opID - operation id to be removedboolean flush(int opID,
              java.nio.ByteBuffer key)
opID - id of the operationkey - key to be flushedboolean flush(int opID,
              java.lang.String key)
boolean flush(int opID)
boolean close(int opID,
              java.nio.ByteBuffer key)
opID - id of the operationkey - key to be closedboolean close(int opID,
              java.lang.String key)
java.util.Iterator<java.lang.Object> getIterator(int opID,
                                                 DataMessageType keyType,
                                                 DataMessageType valueType,
                                                 KryoSerializer deSerializer,
                                                 java.nio.ByteOrder order)
java.util.Iterator<java.lang.Object> getIterator(int opID,
                                                 DataMessageType valueType,
                                                 KryoSerializer deSerializer,
                                                 java.nio.ByteOrder order)