|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPageStore
FileSystemPageStore
public class FileSystemPageStore
DOCUMENT ME!
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)Field Summary | |
---|---|
protected static byte |
B_DOUBLE
|
protected static byte |
B_FLOAT
|
protected static byte |
B_INTEGER
|
protected static byte |
B_LONG
|
protected static byte |
B_SHORT
|
protected static byte |
B_STRING
|
Fields inherited from class PageStore |
---|
def, maxNodeEntries, minNodeEntries, SPLIT_LINEAR, SPLIT_QUADRATIC, splitAlg |
Constructor Summary | |
---|---|
FileSystemPageStore(File file)
Loads an index from the specified File |
|
FileSystemPageStore(File file,
DataDefinition def)
Create and index with default values, if the file exists then a TreeException will be thrown. |
|
FileSystemPageStore(File file,
DataDefinition def,
int cacheSize)
Create and index with default values, if the file exists then a TreeException will be thrown. |
|
FileSystemPageStore(File file,
DataDefinition def,
int maxNodeEntries,
int minNodeEntries,
short splitAlg)
Create and index with the specified values, if the file exists then a TreeException will be thrown. |
|
FileSystemPageStore(File file,
DataDefinition def,
int maxNodeEntries,
int minNodeEntries,
short splitAlg,
int cacheSize)
Create and index with the specified values, if the file exists then a TreeException will be thrown. |
Method Summary | |
---|---|
void |
close()
DOCUMENT ME! |
Entry |
createEntryPointingNode(Node node)
DOCUMENT ME! |
protected void |
finalize()
|
void |
free(Node node)
Frees resources used by this Node |
DataDefinition |
getDataDefinition()
DOCUMENT ME! |
Node |
getEmptyNode(boolean isLeaf)
DOCUMENT ME! |
boolean |
getForceChannel()
DOCUMENT ME! |
int |
getMaxNodeEntries()
DOCUMENT ME! |
int |
getMinNodeEntries()
DOCUMENT ME! |
Node |
getNode(Entry parentEntry,
Node parent)
Returns the Node pointed by this entry and having this Node as parent |
Node |
getRoot()
DOCUMENT ME! |
short |
getSplitAlgorithm()
DOCUMENT ME! |
void |
setForceChannel(boolean b)
If this is set to true , then every write to the index
will call a force() on the associated channel |
void |
setRoot(Node node)
DOCUMENT ME! |
Methods inherited from class PageStore |
---|
getReadLock, getWriteLock, releaseLock |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final byte B_SHORT
protected static final byte B_INTEGER
protected static final byte B_LONG
protected static final byte B_FLOAT
protected static final byte B_DOUBLE
protected static final byte B_STRING
Constructor Detail |
---|
public FileSystemPageStore(File file) throws TreeException
File
file
- The file that stores the index
TreeException
public FileSystemPageStore(File file, DataDefinition def) throws TreeException
TreeException
will be thrown.
file
- def
-
TreeException
public FileSystemPageStore(File file, DataDefinition def, int cacheSize) throws TreeException
TreeException
will be thrown.
file
- def
- cacheSize
- the size of the cache
TreeException
public FileSystemPageStore(File file, DataDefinition def, int maxNodeEntries, int minNodeEntries, short splitAlg) throws TreeException
TreeException
will be thrown.
file
- The file to store the indexdef
- DOCUMENT ME!maxNodeEntries
- minNodeEntries
- splitAlg
-
TreeException
public FileSystemPageStore(File file, DataDefinition def, int maxNodeEntries, int minNodeEntries, short splitAlg, int cacheSize) throws TreeException
TreeException
will be thrown.
file
- The file to store the indexdef
- DOCUMENT ME!maxNodeEntries
- minNodeEntries
- splitAlg
- cacheSize
- the size of the cache
TreeException
Method Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
Object.finalize()
public Node getRoot()
PageStore
getRoot
in class PageStore
PageStore.getRoot()
public void setRoot(Node node) throws TreeException
PageStore
setRoot
in class PageStore
TreeException
- DOCUMENT ME!PageStore.setRoot(org.geotools.index.rtree.Node)
public Node getEmptyNode(boolean isLeaf)
PageStore
getEmptyNode
in class PageStore
PageStore.getEmptyNode(boolean)
public Node getNode(Entry parentEntry, Node parent) throws TreeException
PageStore
getNode
in class PageStore
TreeException
- DOCUMENT ME!PageStore.getNode(org.geotools.index.rtree.Entry,
org.geotools.index.rtree.Node)
public Entry createEntryPointingNode(Node node)
PageStore
createEntryPointingNode
in class PageStore
PageStore.createEntryPointingNode(org.geotools.index.rtree.Node)
public void free(Node node)
PageStore
Node
free
in class PageStore
node
- The Node
to freePageStore.free(org.geotools.index.rtree.Node)
public void close() throws TreeException
PageStore
close
in class PageStore
TreeException
PageStore.close()
public int getMaxNodeEntries()
PageStore
getMaxNodeEntries
in class PageStore
Entry
s per pagePageStore.getMaxNodeEntries()
public int getMinNodeEntries()
PageStore
getMinNodeEntries
in class PageStore
Entry
s per pagePageStore.getMinNodeEntries()
public short getSplitAlgorithm()
PageStore
getSplitAlgorithm
in class PageStore
PageStore.getSplitAlgorithm()
public DataDefinition getDataDefinition()
PageStore
getDataDefinition
in class PageStore
org.geotools.index.rtree.PageStore#getKeyDefinition()
public void setForceChannel(boolean b)
true
, then every write to the index
will call a force() on the associated channel
b
- true or falsepublic boolean getForceChannel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |