|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.index.rtree.PageStore
org.geotools.index.rtree.fs.FileSystemPageStore
DOCUMENT ME!
| 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 org.geotools.index.rtree.PageStore |
def, maxNodeEntries, minNodeEntries, SPLIT_LINEAR, SPLIT_QUADRATIC, splitAlg |
| Constructor Summary | |
FileSystemPageStore(java.io.File file)
Loads an index from the specified File, if the file doesn't
exists or is 0 length, a new index will be created with default values
for maxNodeEntries, minNodeEntries and splitAlgorithm |
|
FileSystemPageStore(java.io.File file,
DataDefinition def)
DOCUMENT ME! |
|
FileSystemPageStore(java.io.File file,
DataDefinition def,
int maxNodeEntries,
int minNodeEntries,
short splitAlg)
Create and index with the specified values, if the file exists then an RTreeException will be thrown. |
|
| Method Summary | |
void |
close()
DOCUMENT ME! |
Entry |
createEntryPointingNode(Node node)
DOCUMENT ME! |
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 org.geotools.index.rtree.PageStore |
getReadLock, getWriteLock, releaseLock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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(java.io.File file)
throws TreeException
File, if the file doesn't
exists or is 0 length, a new index will be created with default values
for maxNodeEntries, minNodeEntries and splitAlgorithm
file - The file that stores the index
TreeException
public FileSystemPageStore(java.io.File file,
DataDefinition def)
throws TreeException
file - def -
TreeException
public FileSystemPageStore(java.io.File file,
DataDefinition def,
int maxNodeEntries,
int minNodeEntries,
short splitAlg)
throws TreeException
RTreeException will be thrown.
file - The file to store the indexdef - DOCUMENT ME!maxNodeEntries - minNodeEntries - splitAlg -
TreeException| Method Detail |
public Node getRoot()
PageStore
getRoot in class PageStorePageStore.getRoot()
public void setRoot(Node node)
throws TreeException
PageStore
setRoot in class PageStorenode -
TreeException - DOCUMENT ME!PageStore.setRoot(org.geotools.index.rtree.Node)public Node getEmptyNode(boolean isLeaf)
PageStore
getEmptyNode in class PageStoreisLeaf -
PageStore.getEmptyNode(boolean)
public Node getNode(Entry parentEntry,
Node parent)
throws TreeException
PageStore
getNode in class PageStoreparentEntry - parent -
TreeException - DOCUMENT ME!org.geotools.index.rtree.PageStore#getNode(long,
org.geotools.index.rtree.Node)public Entry createEntryPointingNode(Node node)
PageStore
createEntryPointingNode in class PageStorenode -
PageStore.createEntryPointingNode(org.geotools.index.rtree.Node)public void free(Node node)
PageStoreNode
free in class PageStorenode - The Node to freePageStore.free(org.geotools.index.rtree.Node)
public void close()
throws TreeException
PageStore
close in class PageStoreTreeExceptionPageStore.close()public int getMaxNodeEntries()
PageStore
getMaxNodeEntries in class PageStoreEntrys per pagePageStore.getMaxNodeEntries()public int getMinNodeEntries()
PageStore
getMinNodeEntries in class PageStoreEntrys per pagePageStore.getMinNodeEntries()public short getSplitAlgorithm()
PageStore
getSplitAlgorithm in class PageStorePageStore.getSplitAlgorithm()public DataDefinition getDataDefinition()
PageStore
getDataDefinition in class PageStoreorg.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 | ||||||||||