org.apache.jackrabbit.mk.htree
Class ChildNodeEntriesHTree

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface org.apache.jackrabbit.mk.model.ChildNodeEntries
CAPACITY_THRESHOLD
 
Constructor Summary
ChildNodeEntriesHTree(RevisionProvider provider)
           
 
Method Summary
 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)
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodeEntriesHTree

public ChildNodeEntriesHTree(RevisionProvider provider)
Method Detail

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.