org.geotools.index.quadtree.fs
Class FileSystemIndexStore

java.lang.Object
  extended byorg.geotools.index.quadtree.fs.FileSystemIndexStore
All Implemented Interfaces:
IndexStore

public class FileSystemIndexStore
extends java.lang.Object
implements IndexStore

DOCUMENT ME!

Author:
Tommaso Nolli

Constructor Summary
FileSystemIndexStore(java.io.File file)
          Constructor.
FileSystemIndexStore(java.io.File file, byte byteOrder)
          Constructor
 
Method Summary
 int getByteOrder()
          DOCUMENT ME!
 QuadTree load()
          Loads a quadrtee stored in a '.qix' file.
 void setByteOrder(byte byteOrder)
          DOCUMENT ME!
 void store(QuadTree tree)
          Stores a QuadTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemIndexStore

public FileSystemIndexStore(java.io.File file)
Constructor. The byte order defaults to NEW_MSB_ORDER

Parameters:
file -

FileSystemIndexStore

public FileSystemIndexStore(java.io.File file,
                            byte byteOrder)
Constructor

Parameters:
file -
byteOrder -
Method Detail

store

public void store(QuadTree tree)
           throws StoreException
Description copied from interface: IndexStore
Stores a QuadTree

Specified by:
store in interface IndexStore
Parameters:
tree - the QuadTree to store
Throws:
StoreException
See Also:
IndexStore.store(org.geotools.index.quadtree.QuadTree)

load

public QuadTree load()
              throws StoreException
Loads a quadrtee stored in a '.qix' file. WARNING: The resulting quadtree will be immutable; if you perform an insert, an UnsupportedOperationException will be thrown.

Specified by:
load in interface IndexStore
Returns:
the loaded QuadTree
Throws:
StoreException
See Also:
IndexStore.load()

getByteOrder

public int getByteOrder()
DOCUMENT ME!

Returns:
Returns the byteOrder.

setByteOrder

public void setByteOrder(byte byteOrder)
DOCUMENT ME!

Parameters:
byteOrder - The byteOrder to set.


Copyright © GeoTools. All Rights Reserved.