Class FileSystemIndexStore

Object
FileSystemIndexStore
All Implemented Interfaces:
FileReader, IndexStore

public class FileSystemIndexStore extends Object implements FileReader, IndexStore
Author:
Tommaso Nolli
  • Constructor Details

    • FileSystemIndexStore

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

      public FileSystemIndexStore(File file, ShpFiles shpFiles)
      Constructor. The byte order defaults to NEW_MSB_ORDER
    • FileSystemIndexStore

      public FileSystemIndexStore(File file, byte byteOrder)
      Constructor
  • Method Details

    • 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:
      • org.geotools.index.quadtree.IndexStore#dataStore(org.geotools.index.quadtree.QuadTree)
    • load

      public QuadTree load(IndexFile indexfile, boolean useMemoryMapping) 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:
      • org.geotools.index.quadtree.IndexStore#load()
    • getByteOrder

      public int getByteOrder()
      Returns:
      Returns the byteOrder.
    • setByteOrder

      public void setByteOrder(byte byteOrder)
      Parameters:
      byteOrder - The byteOrder to set.
    • id

      public String id()
      Description copied from interface: FileReader
      An id for the reader. This is only used for debugging.
      Specified by:
      id in interface FileReader
      Returns:
      id for the reader.