IndexManager
Class RegIndexManager

java.lang.Object
  extended by IndexManager.RegIndexManager
Direct Known Subclasses:
RegIndexManagerMtree

public abstract class RegIndexManager
extends java.lang.Object

Abstract class for the management of the region index.


Constructor Summary
RegIndexManager()
           
 
Method Summary
abstract  boolean create(java.lang.String featureFile)
          Creates a new index from a file containing region features.
abstract  RegionQuery createQuery(Region region)
          Creates a new k-NN query based on the given region using this index.
abstract  boolean delete(ImageID id, Region region)
          Deletes a region from the index.
abstract  boolean insert(ImageID id, Region region)
          Inserts a new region in the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegIndexManager

public RegIndexManager()
Method Detail

createQuery

public abstract RegionQuery createQuery(Region region)
Creates a new k-NN query based on the given region using this index.

Parameters:
region - The query region.
Returns:
A new k-NN query.

create

public abstract boolean create(java.lang.String featureFile)
Creates a new index from a file containing region features.

Parameters:
featureFile - Absolute path of the features file.
Returns:
true if the index was successfully created, false otherwise.

insert

public abstract boolean insert(ImageID id,
                               Region region)
Inserts a new region in the index.

Parameters:
id - ID of the region to be inserted.
region - Region to be inserted.
Returns:
true if the region was successfully inserted, false otherwise.

delete

public abstract boolean delete(ImageID id,
                               Region region)
Deletes a region from the index.

Parameters:
id - ID of the region to be inserted.
region - Region to be inserted.
Returns:
true if the region was successfully deleted, false otherwise.