org.geotools.index.rtree.cachefs
Class Parameters

java.lang.Object
  extended byorg.geotools.index.rtree.cachefs.Parameters

public class Parameters
extends java.lang.Object

DOCUMENT ME!

Author:
Tommaso Nolli

Constructor Summary
Parameters()
           
 
Method Summary
 void flushCache()
          Flushes all nodes and clears the cache
 java.nio.channels.FileChannel getChannel()
          DOCUMENT ME!
 DataDefinition getDataDef()
          DOCUMENT ME!
 boolean getForceChannel()
          DOCUMENT ME!
 java.util.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(java.nio.channels.FileChannel channel)
          DOCUMENT ME!
 void setDataDef(DataDefinition definition)
          DOCUMENT ME!
 void setForceChannel(boolean b)
          DOCUMENT ME!
 void setFreePages(java.util.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

getChannel

public java.nio.channels.FileChannel getChannel()
DOCUMENT ME!

Returns:

getDataDef

public DataDefinition getDataDef()
DOCUMENT ME!

Returns:

getMaxNodeEntries

public int getMaxNodeEntries()
DOCUMENT ME!

Returns:

getMinNodeEntries

public int getMinNodeEntries()
DOCUMENT ME!

Returns:

getSplitAlg

public short getSplitAlg()
DOCUMENT ME!

Returns:

setChannel

public void setChannel(java.nio.channels.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!

Returns:

setForceChannel

public void setForceChannel(boolean b)
DOCUMENT ME!

Parameters:
b -

getFreePages

public java.util.Stack getFreePages()
DOCUMENT ME!

Returns:

setFreePages

public void setFreePages(java.util.Stack stack)
DOCUMENT ME!

Parameters:
stack -

setNodeCacheSize

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

getFromCache

public FileSystemNode getFromCache(long offset)
                            throws java.io.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:
java.io.IOException
TreeException

getNewNodeOffset

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

Parameters:
len -
Returns:
Throws:
java.io.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 © GeoTools. All Rights Reserved.