org.apache.jackrabbit.mk.model
Class ChildNodeEntriesTree
java.lang.Object
org.apache.jackrabbit.mk.model.ChildNodeEntriesTree
- All Implemented Interfaces:
- Cloneable, ChildNodeEntries
public class ChildNodeEntriesTree
- extends Object
- implements ChildNodeEntries
EMPTY
protected static final List<ChildNodeEntry> EMPTY
count
protected int count
revProvider
protected RevisionProvider revProvider
index
protected ChildNodeEntriesTree.IndexEntry[] index
inlined
public boolean inlined()
- Specified by:
inlined in interface ChildNodeEntries
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
clone
public Object clone()
- Specified by:
clone in interface ChildNodeEntries- Overrides:
clone in class Object
getCount
public int getCount()
- Specified by:
getCount in interface ChildNodeEntries
get
public ChildNodeEntry get(String name)
- Specified by:
get in interface ChildNodeEntries
getNames
public Iterator<String> getNames(int offset,
int cnt)
- Specified by:
getNames in interface ChildNodeEntries
getEntries
public Iterator<ChildNodeEntry> getEntries(int offset,
int cnt)
- Specified by:
getEntries in interface ChildNodeEntries
add
public ChildNodeEntry add(ChildNodeEntry entry)
- Specified by:
add in interface ChildNodeEntries
remove
public ChildNodeEntry remove(String name)
- Specified by:
remove in interface ChildNodeEntries
rename
public ChildNodeEntry rename(String oldName,
String newName)
- Specified by:
rename in interface ChildNodeEntries
getAdded
public Iterator<ChildNodeEntry> getAdded(ChildNodeEntries other)
- Description copied from interface:
ChildNodeEntries
- Returns those entries that exist in
other but not in
this.
- Specified by:
getAdded in interface ChildNodeEntries
- Returns:
getRemoved
public Iterator<ChildNodeEntry> getRemoved(ChildNodeEntries other)
- Description copied from interface:
ChildNodeEntries
- Returns those entries that exist in
this but not in
other.
- Specified by:
getRemoved in interface ChildNodeEntries
- Returns:
getModified
public Iterator<ChildNodeEntry> getModified(ChildNodeEntries other)
- Description copied from interface:
ChildNodeEntries
- Returns
this instance's entries that have namesakes in
other but with different ids.
- Specified by:
getModified in interface ChildNodeEntries
- Returns:
persistDirtyBuckets
protected void persistDirtyBuckets(RevisionStore store,
RevisionStore.PutToken token)
throws Exception
- Throws:
Exception
keyToIndex
protected int keyToIndex(String key)
retrieveBucket
protected ChildNodeEntriesMap retrieveBucket(Id id)
serialize
public void serialize(Binding binding)
throws Exception
- Specified by:
serialize in interface ChildNodeEntries
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.