public class NodeDeserializer extends BookKeeper
| Modifier and Type | Field and Description |
|---|---|
protected Graph |
graph |
logger, statsEnabled| Constructor and Description |
|---|
NodeDeserializer(Graph graph,
java.util.Map<java.lang.String,NodeFactory> nodeFactoryByLabel,
boolean statsEnabled,
OdbStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
protected NodeRef |
createNodeRef(long id,
java.lang.String label) |
NodeDb |
deserialize(byte[] bytes) |
NodeRef |
deserializeRef(byte[] bytes)
only deserialize the part we're keeping in memory, used during startup when initializing from disk
|
getSerializedCount, getStartTimeNanos, recordStatisticsprotected final Graph graph
public NodeDeserializer(Graph graph, java.util.Map<java.lang.String,NodeFactory> nodeFactoryByLabel, boolean statsEnabled, OdbStorage storage)
public final NodeDb deserialize(byte[] bytes) throws java.io.IOException
java.io.IOExceptionpublic final NodeRef deserializeRef(byte[] bytes) throws java.io.IOException
java.io.IOExceptionprotected final NodeRef createNodeRef(long id, java.lang.String label)