org.apache.jackrabbit.mk.model
Class ChildNodeEntriesTree

java.lang.Object
  extended by org.apache.jackrabbit.mk.model.ChildNodeEntriesTree
All Implemented Interfaces:
Cloneable, ChildNodeEntries

public class ChildNodeEntriesTree
extends Object
implements ChildNodeEntries


Nested Class Summary
protected static class ChildNodeEntriesTree.Bucket
           
protected static class ChildNodeEntriesTree.BucketInfo
           
protected static interface ChildNodeEntriesTree.IndexEntry
           
protected static class ChildNodeEntriesTree.NodeInfo
           
 
Field Summary
protected  int count
           
protected static List<ChildNode> EMPTY
           
protected  ChildNodeEntriesTree.IndexEntry[] index
           
protected  RevisionProvider revProvider
           
 
Fields inherited from interface org.apache.jackrabbit.mk.model.ChildNodeEntries
CAPACITY_THRESHOLD
 
Method Summary
 ChildNode add(ChildNode entry)
           
 Object clone()
           
 boolean equals(Object obj)
           
 ChildNode get(String name)
           
 Iterator<ChildNode> getAdded(ChildNodeEntries other)
          Returns those entries that exist in other but not in this.
 int getCount()
           
 Iterator<ChildNode> getEntries(int offset, int cnt)
           
 Iterator<ChildNode> 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<ChildNode> 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)
           
 ChildNode remove(String name)
           
 ChildNode rename(String oldName, String newName)
           
protected  ChildNodeEntriesMap retrieveBucket(Id id)
           
 void serialize(Binding binding)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

protected static final List<ChildNode> EMPTY

count

protected int count

revProvider

protected RevisionProvider revProvider

index

protected ChildNodeEntriesTree.IndexEntry[] index
Method Detail

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 ChildNode 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<ChildNode> getEntries(int offset,
                                      int cnt)
Specified by:
getEntries in interface ChildNodeEntries

add

public ChildNode add(ChildNode entry)
Specified by:
add in interface ChildNodeEntries

remove

public ChildNode remove(String name)
Specified by:
remove in interface ChildNodeEntries

rename

public ChildNode rename(String oldName,
                        String newName)
Specified by:
rename in interface ChildNodeEntries

getAdded

public Iterator<ChildNode> 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<ChildNode> 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<ChildNode> 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.