public class ChildNodeEntriesHTree extends Object implements ChildNodeEntries, PersistHook
HTree based implementation to manage child node entries.CAPACITY_THRESHOLD| Constructor and Description |
|---|
ChildNodeEntriesHTree(RevisionProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
ChildNodeEntry |
add(ChildNodeEntry entry) |
Object |
clone() |
void |
deserialize(Binding binding) |
ChildNodeEntry |
get(String name) |
Iterator<ChildNodeEntry> |
getAdded(ChildNodeEntries other)
Returns those entries that exist in
other but not in
this. |
int |
getCount() |
Iterator<ChildNodeEntry> |
getEntries(int offset,
int count) |
int |
getMemory()
The estimated amount of memory used, in bytes.
|
Iterator<ChildNodeEntry> |
getModified(ChildNodeEntries other)
Returns
this instance's entries that have namesakes in
other but with different ids. |
Iterator<String> |
getNames(int offset,
int count) |
Iterator<ChildNodeEntry> |
getRemoved(ChildNodeEntries other)
Returns those entries that exist in
this but not in
other. |
boolean |
inlined() |
void |
postPersist(RevisionStore store,
RevisionStore.PutToken token) |
void |
prePersist(RevisionStore store,
RevisionStore.PutToken token) |
ChildNodeEntry |
remove(String name) |
ChildNodeEntry |
rename(String oldName,
String newName) |
void |
serialize(Binding binding) |
public ChildNodeEntriesHTree(RevisionProvider provider)
public Object clone()
clone in interface ChildNodeEntriesclone in class Objectpublic boolean inlined()
inlined in interface ChildNodeEntriespublic int getCount()
getCount in interface ChildNodeEntriespublic ChildNodeEntry get(String name)
get in interface ChildNodeEntriespublic Iterator<String> getNames(int offset, int count)
getNames in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getEntries(int offset, int count)
getEntries in interface ChildNodeEntriespublic ChildNodeEntry add(ChildNodeEntry entry)
add in interface ChildNodeEntriespublic ChildNodeEntry remove(String name)
remove in interface ChildNodeEntriespublic ChildNodeEntry rename(String oldName, String newName)
rename in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getAdded(ChildNodeEntries other)
ChildNodeEntriesother but not in
this.getAdded in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getRemoved(ChildNodeEntries other)
ChildNodeEntriesthis but not in
other.getRemoved in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getModified(ChildNodeEntries other)
ChildNodeEntriesthis instance's entries that have namesakes in
other but with different ids.getModified in interface ChildNodeEntriespublic void serialize(Binding binding) throws Exception
serialize in interface ChildNodeEntriesExceptionpublic void prePersist(RevisionStore store, RevisionStore.PutToken token) throws Exception
prePersist in interface PersistHookExceptionpublic void postPersist(RevisionStore store, RevisionStore.PutToken token) throws Exception
postPersist in interface PersistHookExceptionpublic int getMemory()
CacheObjectgetMemory in interface CacheObjectCopyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.