org.geotools.index.rtree.memory
Class MemoryPageStore

java.lang.Object
  extended byorg.geotools.index.rtree.PageStore
      extended byorg.geotools.index.rtree.memory.MemoryPageStore

public class MemoryPageStore
extends PageStore

DOCUMENT ME!

Author:
Tommaso Nolli

Field Summary
 
Fields inherited from class org.geotools.index.rtree.PageStore
def, maxNodeEntries, minNodeEntries, SPLIT_LINEAR, SPLIT_QUADRATIC, splitAlg
 
Constructor Summary
MemoryPageStore(DataDefinition def)
           
MemoryPageStore(DataDefinition def, int max, int min, short split)
           
 
Method Summary
 void close()
          DOCUMENT ME!
 Entry createEntryPointingNode(Node node)
          DOCUMENT ME!
 void free(Node node)
          Frees resources used by this Node
 Node getEmptyNode(boolean isLeaf)
          DOCUMENT ME!
 Node getNode(Entry parentEntry, Node parent)
          Returns the Node pointed by this entry and having this Node as parent
 Node getRoot()
          DOCUMENT ME!
 void setRoot(Node node)
          DOCUMENT ME!
 
Methods inherited from class org.geotools.index.rtree.PageStore
getDataDefinition, getMaxNodeEntries, getMinNodeEntries, getReadLock, getSplitAlgorithm, getWriteLock, releaseLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPageStore

public MemoryPageStore(DataDefinition def)
                throws TreeException

MemoryPageStore

public MemoryPageStore(DataDefinition def,
                       int max,
                       int min,
                       short split)
                throws TreeException
Method Detail

getRoot

public Node getRoot()
Description copied from class: PageStore
DOCUMENT ME!

Specified by:
getRoot in class PageStore
Returns:
See Also:
PageStore.getRoot()

setRoot

public void setRoot(Node node)
             throws TreeException
Description copied from class: PageStore
DOCUMENT ME!

Specified by:
setRoot in class PageStore
Parameters:
node -
Throws:
TreeException - DOCUMENT ME!
See Also:
PageStore.setRoot(org.geotools.index.rtree.Node)

getEmptyNode

public Node getEmptyNode(boolean isLeaf)
Description copied from class: PageStore
DOCUMENT ME!

Specified by:
getEmptyNode in class PageStore
Parameters:
isLeaf -
Returns:
See Also:
PageStore.getEmptyNode(boolean)

getNode

public Node getNode(Entry parentEntry,
                    Node parent)
             throws TreeException
Description copied from class: PageStore
Returns the Node pointed by this entry and having this Node as parent

Specified by:
getNode in class PageStore
Parameters:
parentEntry -
parent -
Returns:
Throws:
TreeException - DOCUMENT ME!
See Also:
PageStore.getNode(org.geotools.index.rtree.Entry, org.geotools.index.rtree.Node)

createEntryPointingNode

public Entry createEntryPointingNode(Node node)
Description copied from class: PageStore
DOCUMENT ME!

Specified by:
createEntryPointingNode in class PageStore
Parameters:
node -
Returns:
See Also:
PageStore.createEntryPointingNode(org.geotools.index.rtree.Node)

free

public void free(Node node)
Description copied from class: PageStore
Frees resources used by this Node

Specified by:
free in class PageStore
Parameters:
node - The Node to free
See Also:
PageStore.free(org.geotools.index.rtree.Node)

close

public void close()
           throws TreeException
Description copied from class: PageStore
DOCUMENT ME!

Specified by:
close in class PageStore
Throws:
TreeException
See Also:
PageStore.close()


Copyright © GeoTools. All Rights Reserved.