Interface NodeHashMap
- All Known Implementing Classes:
NodeHashMapImpl
public interface NodeHashMap
The interface defined to manage the hash based on the entries in the
nodes map.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all the items stored inside this map.entrySet()Return all the entries inside this map.Return the data node associated with the path.longReturn the digest value.voidpostChange(String path, DataNode node) Called after making the changes on the node, which will update the digest.voidCalled before we made the change on the node, which will clear the digest associated with it.Add the node into the map and update the digest with the new node.putWithoutDigest(String path, DataNode node) Add the node into the map without update the digest.Remove the path from the internal nodes map.intsize()Return the size of the nodes stored in this map.
-
Method Details
-
put
-
putWithoutDigest
-
get
-
remove
-
entrySet
-
clear
void clear()Clear all the items stored inside this map. -
size
int size()Return the size of the nodes stored in this map. -
preChange
-
postChange
-
getDigest
long getDigest()Return the digest value.
-