A cache node only stores complete children. Additionally it holds a flag whether the node can be considered fully initialized in the sense that we know at one point in time this represented a valid state of the world, e.g. initialized with data from the server, or a complete overwrite by the client. The filtered flag also tracks whether a node potentially had children removed due to a filter.
|
CacheNode(IndexedNode node, boolean fullyInitialized, boolean filtered)
|
| IndexedNode | |
| Node |
getNode()
|
| boolean | |
| boolean |
isCompleteForPath(Path path)
|
| boolean |
isFiltered()
Returns whether this node is potentially missing children due to a filter applied to the node
|
| boolean |
isFullyInitialized()
Returns whether this node was fully initialized with either server data or a complete overwrite
by the client
|
| node | |
|---|---|
| fullyInitialized | |
| filtered |
Returns whether this node is potentially missing children due to a filter applied to the node
Returns whether this node was fully initialized with either server data or a complete overwrite by the client