|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface providing the operations which determine the strategy of an r-tree.
| Method Summary | |
int |
chooseSubtree(SpatialSearchTreeNode node,
SpatialSearchTreeEntry obj)
Determines the best subtree for inserting an new object. |
java.util.BitSet |
distribute(SpatialSearchTreeNode node,
SpatialSearchTreeEntry entry)
Distributes the entries of a node to two nodes. |
int |
getMinimum()
Gets the minimum percentage of entries. |
int |
getReinsertFactor(int height)
Returns the percentage of objects which should be reinserted. |
boolean |
isOrdering()
Returns whether the strategy is ordering or not. |
void |
readParameters(java.io.DataInputStream in)
Reads parameters from DataInputStream. |
void |
setMinimum(int m)
Sets the minimum percentage of entries. |
void |
setReinsertFactor(int p)
Sets the quota of entries to be reinserted. |
void |
sortForReinsert(SpatialSearchTreeNode node)
Sorts the entries of the given node according to their distance to the center of the parent entry. |
void |
writeParameters(java.io.DataOutputStream out)
Writes parameters to DataOutputStream. |
| Method Detail |
public int chooseSubtree(SpatialSearchTreeNode node,
SpatialSearchTreeEntry obj)
node - non-leaf node where the object should to be insertedobj - the new object or the reinserted entry
public java.util.BitSet distribute(SpatialSearchTreeNode node,
SpatialSearchTreeEntry entry)
node - the nodeentry - the entry describing the node
public int getMinimum()
public int getReinsertFactor(int height)
public boolean isOrdering()
public void readParameters(java.io.DataInputStream in)
throws java.io.IOException
in - stream
java.io.IOExceptionpublic void setMinimum(int m)
m - the new valuepublic void setReinsertFactor(int p)
p - the new valuepublic void sortForReinsert(SpatialSearchTreeNode node)
node - the node
public void writeParameters(java.io.DataOutputStream out)
throws java.io.IOException
out - stream
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||