org.geotools.index.rtree.cachefs
Class Parameters

Object
  extended by Parameters

public class Parameters
extends Object

DOCUMENT ME!

Author:
Tommaso Nolli
Module:
trunk/gt/modules   (gt-modules.jar) (Maven report) (SVN head)

Constructor Summary
Parameters()
           
 
Method Summary
 void flushCache()
          Flushes all nodes and clears the cache
 FileChannel getChannel()
          DOCUMENT ME!
 DataDefinition getDataDef()
          DOCUMENT ME!
 boolean getForceChannel()
          DOCUMENT ME!
 Stack getFreePages()
          DOCUMENT ME!
 FileSystemNode getFromCache(long offset)
          Gets a FileSystemNode from the cache, if the node is non there, a new node will be created and added to the cache.
 int getMaxNodeEntries()
          DOCUMENT ME!
 int getMinNodeEntries()
          DOCUMENT ME!
 long getNewNodeOffset(int len)
          DOCUMENT ME!
 short getSplitAlg()
          DOCUMENT ME!
 void putToCache(FileSystemNode node)
          Soters a FileSystemNode in the cache.
 void removeFromCache(FileSystemNode node)
          Removes a node from the cache
 void setChannel(FileChannel channel)
          DOCUMENT ME!
 void setDataDef(DataDefinition definition)
          DOCUMENT ME!
 void setForceChannel(boolean b)
          DOCUMENT ME!
 void setFreePages(Stack stack)
          DOCUMENT ME!
 void setMaxNodeEntries(int i)
          DOCUMENT ME!
 void setMinNodeEntries(int i)
          DOCUMENT ME!
 void setNodeCacheSize(int size)
           
 void setSplitAlg(short s)
          DOCUMENT ME!
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

getChannel

public FileChannel getChannel()
DOCUMENT ME!


getDataDef

public DataDefinition getDataDef()
DOCUMENT ME!


getMaxNodeEntries

public int getMaxNodeEntries()
DOCUMENT ME!


getMinNodeEntries

public int getMinNodeEntries()
DOCUMENT ME!


getSplitAlg

public short getSplitAlg()
DOCUMENT ME!


setChannel

public void setChannel(FileChannel channel)
DOCUMENT ME!

Parameters:
channel -

setDataDef

public void setDataDef(DataDefinition definition)
DOCUMENT ME!

Parameters:
definition -

setMaxNodeEntries

public void setMaxNodeEntries(int i)
DOCUMENT ME!

Parameters:
i -

setMinNodeEntries

public void setMinNodeEntries(int i)
DOCUMENT ME!

Parameters:
i -

setSplitAlg

public void setSplitAlg(short s)
DOCUMENT ME!

Parameters:
s -

getForceChannel

public boolean getForceChannel()
DOCUMENT ME!


setForceChannel

public void setForceChannel(boolean b)
DOCUMENT ME!

Parameters:
b -

getFreePages

public Stack getFreePages()
DOCUMENT ME!


setFreePages

public void setFreePages(Stack stack)
DOCUMENT ME!

Parameters:
stack -

setNodeCacheSize

public void setNodeCacheSize(int size)
                      throws TreeException
Throws:
TreeException

getFromCache

public FileSystemNode getFromCache(long offset)
                            throws IOException,
                                   TreeException
Gets a FileSystemNode from the cache, if the node is non there, a new node will be created and added to the cache.

Parameters:
offset - The node offset
Returns:
a FileSystemNode
Throws:
IOException
TreeException

getNewNodeOffset

public long getNewNodeOffset(int len)
                      throws IOException
DOCUMENT ME!

Parameters:
len -
Throws:
IOException - DOCUMENT ME!

putToCache

public void putToCache(FileSystemNode node)
                throws TreeException
Soters a FileSystemNode in the cache.

Parameters:
node - the FileSystemNode to store
Throws:
TreeException

removeFromCache

public void removeFromCache(FileSystemNode node)
Removes a node from the cache

Parameters:
node - the node to remove

flushCache

public void flushCache()
                throws TreeException
Flushes all nodes and clears the cache

Throws:
TreeException


Copyright © 1996-2009 Geotools. All Rights Reserved.