|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Database

Database specifies the requirements for any database implementation. Note that any implementing class is supposed to provide a constructor without parameters for dynamic instantiation.
| Method Summary | ||
|---|---|---|
void |
accumulateDataStoreEvents()
Collects all insertion, deletion and update events until flushDataStoreEvents() is called. |
|
void |
addDataStoreListener(DataStoreListener l)
Adds a listener for the DataStoreEvent posted after the
content of the database changes. |
|
void |
addIndex(Index index)
Add a new index to the database. |
|
void |
flushDataStoreEvents()
Fires all collected insertion, deletion and update events as one DataStoreEvent, i.e. notifies all registered DataStoreListener how the content of the database has been changed since accumulateDataStoreEvents() has been called. |
|
SingleObjectBundle |
getBundle(DBID id)
Returns the DatabaseObject represented by the specified id. |
|
StaticDBIDs |
getDBIDs()
Deprecated. |
|
|
getDistanceQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
Get the distance query for a particular distance function. |
|
Collection<Index> |
getIndexes()
Collection of known indexes |
|
|
getKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query. |
|
|
getRangeQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a range query object for the given distance query. |
|
|
getRelation(TypeInformation restriction,
Object... hints)
Get an object representation. |
|
Collection<Relation<?>> |
getRelations()
Get all relations of a database. |
|
|
getRKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
Get a rKNN query object for the given distance query. |
|
|
getSimilarityQuery(Relation<O> relation,
SimilarityFunction<? super O,D> similarityFunction,
Object... hints)
Get the similarity query for a particular similarity function. |
|
void |
initialize()
Initialize the database, for example by loading the input data. |
|
void |
removeDataStoreListener(DataStoreListener l)
Removes a listener previously added with addDataStoreListener(DataStoreListener). |
|
void |
removeIndex(Index index)
Remove a particular index |
|
int |
size()
Deprecated. |
|
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult |
|---|
getHierarchy, setHierarchy |
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result |
|---|
getLongName, getShortName |
| Method Detail |
|---|
void initialize()
@Deprecated int size()
Collection<Relation<?>> getRelations()
<O> Relation<O> getRelation(TypeInformation restriction,
Object... hints)
throws NoSupportedDataTypeException
O - Object typerestriction - Type restrictionhints - Optimizer hints
NoSupportedDataTypeException
<O,D extends Distance<D>> DistanceQuery<O,D> getDistanceQuery(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
Object... hints)
O - Object typeD - Distance result typerelation - Relation useddistanceFunction - Distance function to usehints - Optimizer hints
<O,D extends Distance<D>> SimilarityQuery<O,D> getSimilarityQuery(Relation<O> relation,
SimilarityFunction<? super O,D> similarityFunction,
Object... hints)
O - Object typeD - Similarity result typerelation - Relation usedsimilarityFunction - Similarity function to usehints - Optimizer hints
<O,D extends Distance<D>> KNNQuery<O,D> getKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
DatabaseQuery.HINT_BULK bulk
query needed
O - Object typeD - Distance typedistanceQuery - Distance queryhints - Optimizer hints
<O,D extends Distance<D>> RangeQuery<O,D> getRangeQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
DatabaseQuery.HINT_BULK bulk
query needed
O - Object typeD - Distance typedistanceQuery - Distance queryhints - Optimizer hints
<O,D extends Distance<D>> RKNNQuery<O,D> getRKNNQuery(DistanceQuery<O,D> distanceQuery,
Object... hints)
DatabaseQuery.HINT_BULK bulk
query needed
O - Object typeD - Distance typedistanceQuery - Distance queryhints - Optimizer hints
SingleObjectBundle getBundle(DBID id)
id - the id of the Object to be obtained from the Database
@Deprecated StaticDBIDs getDBIDs()
void addIndex(Index index)
index - Index to addCollection<Index> getIndexes()
void removeIndex(Index index)
index - Index to removevoid addDataStoreListener(DataStoreListener l)
DataStoreEvent posted after the
content of the database changes.
l - the listener to addremoveDataStoreListener(DataStoreListener),
DataStoreListener,
DataStoreEventvoid removeDataStoreListener(DataStoreListener l)
addDataStoreListener(DataStoreListener).
l - the listener to removeaddDataStoreListener(DataStoreListener),
DataStoreListener,
DataStoreEventvoid accumulateDataStoreEvents()
flushDataStoreEvents() is called.
DataStoreEventvoid flushDataStoreEvents()
accumulateDataStoreEvents() has been called.
DataStoreListener,
DataStoreEvent
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||