Class FileSystemIndexStore
- Object
- 
- FileSystemIndexStore
 
- 
- All Implemented Interfaces:
- FileReader,- IndexStore
 
 public class FileSystemIndexStore extends Object implements FileReader, IndexStore - Author:
- Tommaso Nolli
 
- 
- 
Constructor SummaryConstructors Constructor Description FileSystemIndexStore(File file)Constructor.FileSystemIndexStore(File file, byte byteOrder)ConstructorFileSystemIndexStore(File file, ShpFiles shpFiles)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetByteOrder()Stringid()An id for the reader.QuadTreeload(IndexFile indexfile, boolean useMemoryMapping)Loads a quadrtee stored in a '.qix' file.voidsetByteOrder(byte byteOrder)voidstore(QuadTree tree)Stores aQuadTree
 
- 
- 
- 
Constructor Detail- 
FileSystemIndexStorepublic FileSystemIndexStore(File file) Constructor. The byte order defaults to NEW_MSB_ORDER
 - 
FileSystemIndexStorepublic FileSystemIndexStore(File file, ShpFiles shpFiles) Constructor. The byte order defaults to NEW_MSB_ORDER
 - 
FileSystemIndexStorepublic FileSystemIndexStore(File file, byte byteOrder) Constructor
 
- 
 - 
Method Detail- 
storepublic void store(QuadTree tree) throws StoreException Description copied from interface:IndexStoreStores aQuadTree- Specified by:
- storein interface- IndexStore
- Parameters:
- tree- the- QuadTreeto store
- Throws:
- StoreException
- See Also:
- org.geotools.index.quadtree.IndexStore#dataStore(org.geotools.index.quadtree.QuadTree)
 
 - 
loadpublic 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, anUnsupportedOperationExceptionwill be thrown.- Specified by:
- loadin interface- IndexStore
- Returns:
- the loaded QuadTree
- Throws:
- StoreException
- See Also:
- org.geotools.index.quadtree.IndexStore#load()
 
 - 
getByteOrderpublic int getByteOrder() - Returns:
- Returns the byteOrder.
 
 - 
setByteOrderpublic void setByteOrder(byte byteOrder) - Parameters:
- byteOrder- The byteOrder to set.
 
 - 
idpublic String id() Description copied from interface:FileReaderAn id for the reader. This is only used for debugging.- Specified by:
- idin interface- FileReader
- Returns:
- id for the reader.
 
 
- 
 
-