public class ChildNodeEntriesTree extends Object implements ChildNodeEntries, CacheObject
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ChildNodeEntriesTree.Bucket |
protected static class |
ChildNodeEntriesTree.BucketInfo |
protected static interface |
ChildNodeEntriesTree.IndexEntry |
protected static class |
ChildNodeEntriesTree.NodeInfo |
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected static List<ChildNodeEntry> |
EMPTY |
protected ChildNodeEntriesTree.IndexEntry[] |
index |
protected RevisionProvider |
revProvider |
CAPACITY_THRESHOLD| Modifier and Type | Method and Description |
|---|---|
ChildNodeEntry |
add(ChildNodeEntry entry) |
Object |
clone() |
boolean |
equals(Object obj) |
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 cnt) |
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 cnt) |
Iterator<ChildNodeEntry> |
getRemoved(ChildNodeEntries other)
Returns those entries that exist in
this but not in
other. |
boolean |
inlined() |
protected int |
keyToIndex(String key) |
protected void |
persistDirtyBuckets(RevisionStore store,
RevisionStore.PutToken token) |
ChildNodeEntry |
remove(String name) |
ChildNodeEntry |
rename(String oldName,
String newName) |
protected ChildNodeEntriesMap |
retrieveBucket(Id id) |
void |
serialize(Binding binding) |
protected static final List<ChildNodeEntry> EMPTY
protected int count
protected RevisionProvider revProvider
protected ChildNodeEntriesTree.IndexEntry[] index
public boolean inlined()
inlined in interface ChildNodeEntriespublic Object clone()
clone in interface ChildNodeEntriesclone in class Objectpublic int getCount()
getCount in interface ChildNodeEntriespublic ChildNodeEntry get(String name)
get in interface ChildNodeEntriespublic Iterator<String> getNames(int offset, int cnt)
getNames in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getEntries(int offset, int cnt)
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 ChildNodeEntriesprotected void persistDirtyBuckets(RevisionStore store, RevisionStore.PutToken token) throws Exception
Exceptionprotected int keyToIndex(String key)
protected ChildNodeEntriesMap retrieveBucket(Id id)
public void serialize(Binding binding) throws Exception
serialize in interface ChildNodeEntriesExceptionpublic int getMemory()
CacheObjectgetMemory in interface CacheObjectCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.