|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.index.IndexAdmin
public abstract class IndexAdmin
The Class IndexAdmin.
| Field Summary | |
|---|---|
static java.lang.String |
DELIMITER
Delemiter for separating key values. |
protected static long |
SLEEP_TIME
Default sleep time. |
| Constructor Summary | |
|---|---|
IndexAdmin()
|
|
| Method Summary | |
|---|---|
void |
create(DIndexStructure dIndexStructure)
Create index. |
protected abstract void |
createIndex(DIndexStructure dIndexStructure)
Create index. |
void |
delete(java.lang.String indexName)
Delete. |
protected abstract void |
deleteIndex(java.lang.String indexName)
Delete index. |
boolean |
exists(java.lang.String indexName)
Checks existence of a given index. |
java.lang.String |
existsIgnoreCase(java.lang.String indexName)
Checks whether an index name exists in the data dictionary. |
protected abstract boolean |
indexExists(java.lang.String indexName)
Index exists. |
void |
rename(java.lang.String indexName,
java.lang.String newIndexName)
Rename. |
protected abstract void |
renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
Rename index. |
void |
reorganize(java.lang.String indexName)
This method is responsible for reorganizeing the index structure of a given retrieval system. |
protected abstract void |
reorganizeIndex(java.lang.String indexName)
Reorganize index. |
void |
save(java.lang.String indexName)
Save. |
abstract void |
saveIndex(java.lang.String indexName)
Save index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DELIMITER
protected static final long SLEEP_TIME
| Constructor Detail |
|---|
public IndexAdmin()
| Method Detail |
|---|
public void create(DIndexStructure dIndexStructure)
throws IndexException
dIndexStructure - Index structure.
IndexException - Unable to create index.
public void delete(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void rename(java.lang.String indexName,
java.lang.String newIndexName)
throws IndexException
indexName - the index namenewIndexName - the new index name
IndexException - the index exception
public void save(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public abstract void saveIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
protected abstract void createIndex(DIndexStructure dIndexStructure)
throws IndexException
dIndexStructure - Index structure.
IndexException - Unable to create index.
protected abstract void deleteIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
protected abstract void renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
throws IndexException
indexName - the index namenewIndexName - the new index name
IndexException - the index exception
public boolean exists(java.lang.String indexName)
throws IndexException
false, that does not
necessarily mean that an index with that name can be created. AnyFinder does not allow indexes that differ only in
capitalization of names. If an index with name Test exists, exists("test") will return
false, but create("test") will fail nevertheless. If you wish to check whether it is
legal to create an index, call existsIgnoreCase() instead.
indexName - -
index name to be checked
IndexException - If any other error occurs.
public java.lang.String existsIgnoreCase(java.lang.String indexName)
throws IndexException
null. If an index corresponding to
indexName is found, this method calls exists() to check additional constraints that
may be imposed by the retrieval plugin.
indexName - -
The index name to search for
null if such an index does not
exist
IndexException - -
protected abstract boolean indexExists(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void reorganize(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
protected abstract void reorganizeIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||