|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object index.base.AIndexStructure
public abstract class AIndexStructure
This is the super class of all index structures. An example for the implementation of further structures is given in the class index.structures.IndexExample.
Field Summary | |
---|---|
protected int |
dim
Dimension of the points within the data set. |
protected int |
maxValue
Maximum value within the dimensions. |
protected int |
minValue
Minimum value within the dimensions. |
protected int |
size
Size of the given data set. |
Constructor Summary | |
---|---|
protected |
AIndexStructure(int _size,
int _dim,
int _minValue,
int _maxValue,
java.util.HashMap<java.lang.String,java.lang.String> _map)
This is the default constructor of the index structures. |
Method Summary | |
---|---|
abstract boolean |
canKNNSearch()
Whether the index structure supports kNN queries or not. |
abstract void |
clear()
This method is for cleaning up the state of the current used instance of the the index structure. |
abstract java.lang.String |
getInformations()
This method returns the name of the index structure and some additional informations, necessary for an unique identification of the index structure. |
abstract java.lang.String |
getName()
This method returns the name of the index structure. |
protected abstract testapp.JDialog_IndexStrOption |
getOptionsDialog(javax.swing.JFrame _parent)
This method returns the index structure specific dialog for setting the parameters. |
void |
initParameter(java.util.HashMap<java.lang.String,java.lang.String> _map)
This method is used to set the index structure specific parameters. |
protected abstract boolean |
insert(int[] _dataset)
This method is for indexing one data item within the index structure. |
abstract int[] |
search(int[] _datasetToSearch)
This method is for answering exact match queries. |
abstract int[][] |
searchKNN(int[] _datasetToSearch,
int _k)
This method is for answering kNN queries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected int dim
protected int minValue
protected int maxValue
Constructor Detail |
---|
protected AIndexStructure(int _size, int _dim, int _minValue, int _maxValue, java.util.HashMap<java.lang.String,java.lang.String> _map)
_size
- Size of the data set._dim
- Dimension of the points within the data set._minValue
- Minimum value within the dimensions._maxValue
- Maximum value within the dimensions._map
- HashMap for index structure specific parameters.Method Detail |
---|
public void initParameter(java.util.HashMap<java.lang.String,java.lang.String> _map)
_map
- The HashMap given by the constructor.protected abstract boolean insert(int[] _dataset)
_dataset
- Data item to index.
public abstract int[] search(int[] _datasetToSearch)
_datasetToSearch
- The given data item.
public abstract int[][] searchKNN(int[] _datasetToSearch, int _k)
_datasetToSearch
- The given data item._k
- The number of points to return.
public abstract boolean canKNNSearch()
public abstract java.lang.String getInformations()
public abstract java.lang.String getName()
public abstract void clear()
protected abstract testapp.JDialog_IndexStrOption getOptionsDialog(javax.swing.JFrame _parent)
_parent
- The JFrame of the Framework.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |