public class RAMStorageGraph extends Object implements StorageGraph
A StorageGraph
bound to a RAM map to be populated explicitly
before use.
Constructor and Description |
---|
RAMStorageGraph() |
RAMStorageGraph(HGPersistentHandle root) |
RAMStorageGraph(Set<HGPersistentHandle> roots) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData(HGPersistentHandle handle) |
HGPersistentHandle[] |
getLink(HGPersistentHandle handle) |
Set<HGPersistentHandle> |
getRoots()
Return the set of root handles for this storage sub-graph.
|
Iterator<Pair<HGPersistentHandle,Object>> |
iterator() |
void |
put(HGPersistentHandle handle,
byte[] data) |
void |
put(HGPersistentHandle handle,
HGPersistentHandle[] linkData) |
HGPersistentHandle |
store(HGPersistentHandle handle,
byte[] data) |
HGPersistentHandle |
store(HGPersistentHandle handle,
HGPersistentHandle[] link) |
void |
translateHandles(Map<HGHandle,HGHandle> subst) |
public RAMStorageGraph()
public RAMStorageGraph(HGPersistentHandle root)
public RAMStorageGraph(Set<HGPersistentHandle> roots)
public void put(HGPersistentHandle handle, HGPersistentHandle[] linkData)
public void put(HGPersistentHandle handle, byte[] data)
public HGPersistentHandle store(HGPersistentHandle handle, HGPersistentHandle[] link)
store
in interface StorageGraph
public HGPersistentHandle store(HGPersistentHandle handle, byte[] data)
store
in interface StorageGraph
public byte[] getData(HGPersistentHandle handle)
getData
in interface StorageGraph
public HGPersistentHandle[] getLink(HGPersistentHandle handle)
getLink
in interface StorageGraph
public Set<HGPersistentHandle> getRoots()
StorageGraph
Return the set of root handles for this storage sub-graph.
getRoots
in interface StorageGraph
public Iterator<Pair<HGPersistentHandle,Object>> iterator()
iterator
in interface Iterable<Pair<HGPersistentHandle,Object>>
iterator
in interface StorageGraph
Copyright © 2015. All rights reserved.