org.apache.jackrabbit.mk.htree
Class ChildNodeEntriesHTree
java.lang.Object
org.apache.jackrabbit.mk.htree.ChildNodeEntriesHTree
- All Implemented Interfaces:
- Cloneable, ChildNodeEntries, PersistHook
public class ChildNodeEntriesHTree
- extends Object
- implements ChildNodeEntries, PersistHook
HTree based implementation to manage child node entries.
ChildNodeEntriesHTree
public ChildNodeEntriesHTree(RevisionProvider provider)
clone
public Object clone()
- Specified by:
clone in interface ChildNodeEntries- Overrides:
clone in class Object
inlined
public boolean inlined()
- Specified by:
inlined in interface ChildNodeEntries
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 count)
- Specified by:
getNames in interface ChildNodeEntries
getEntries
public Iterator<ChildNodeEntry> getEntries(int offset,
int count)
- 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:
serialize
public void serialize(Binding binding)
throws Exception
- Specified by:
serialize in interface ChildNodeEntries
- Throws:
Exception
deserialize
public void deserialize(Binding binding)
throws Exception
- Throws:
Exception
prePersist
public void prePersist(RevisionStore store,
RevisionStore.PutToken token)
throws Exception
- Specified by:
prePersist in interface PersistHook
- Throws:
Exception
postPersist
public void postPersist(RevisionStore store,
RevisionStore.PutToken token)
throws Exception
- Specified by:
postPersist in interface PersistHook
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.