SMILA (incubation) API documentation

org.eclipse.smila.search.lucene.index
Class IndexAdmin

java.lang.Object
  extended by org.eclipse.smila.search.index.IndexAdmin
      extended by org.eclipse.smila.search.lucene.index.IndexAdmin

public class IndexAdmin
extends IndexAdmin

Author:
GSchmidt To change this generated comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from class org.eclipse.smila.search.index.IndexAdmin
DELIMITER, SLEEP_TIME
 
Constructor Summary
IndexAdmin()
           
 
Method Summary
protected  void createIndex(DIndexStructure dIndexStructure)
          Create index.
protected  void deleteIndex(java.lang.String indexName)
          Delete index.
protected  boolean indexExists(java.lang.String indexName)
          Index exists.
protected  void renameIndex(java.lang.String indexName, java.lang.String newIndexName)
          Rename index.
protected  void reorganizeIndex(java.lang.String indexName)
          Reorganize index.
 void saveIndex(java.lang.String indexName)
          throw new RuntimeException("saveIndex is not implemented!").
 
Methods inherited from class org.eclipse.smila.search.index.IndexAdmin
create, delete, exists, existsIgnoreCase, rename, reorganize, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexAdmin

public IndexAdmin()
Method Detail

createIndex

protected void createIndex(DIndexStructure dIndexStructure)
                    throws IndexException
Create index.

Specified by:
createIndex in class IndexAdmin
Parameters:
dIndexStructure - Index structure.
Throws:
IndexException - Unable to create index.
See Also:
#createIndex(org.eclipse.smila.search.utils.indexstructure.DIndexStructure)

indexExists

protected boolean indexExists(java.lang.String indexName)
                       throws IndexException
Index exists.

Specified by:
indexExists in class IndexAdmin
Parameters:
indexName - the index name
Returns:
true, if successful
Throws:
IndexException - the index exception
See Also:
IndexAdmin.indexExists(java.lang.String)

deleteIndex

protected void deleteIndex(java.lang.String indexName)
                    throws IndexException
Delete index.

Specified by:
deleteIndex in class IndexAdmin
Parameters:
indexName - the index name
Throws:
IndexException - the index exception
See Also:
IndexAdmin.deleteIndex(java.lang.String)

renameIndex

protected void renameIndex(java.lang.String indexName,
                           java.lang.String newIndexName)
                    throws IndexException
Rename index.

Specified by:
renameIndex in class IndexAdmin
Parameters:
indexName - the index name
newIndexName - the new index name
Throws:
IndexException - the index exception
See Also:
IndexAdmin.renameIndex(java.lang.String, java.lang.String)

reorganizeIndex

protected void reorganizeIndex(java.lang.String indexName)
                        throws IndexException
Reorganize index.

Specified by:
reorganizeIndex in class IndexAdmin
Parameters:
indexName - the index name
Throws:
IndexException - the index exception
See Also:
com.brox.anyfinder.index.IndexAdmin#reorganizeIndex(java.lang.String)

saveIndex

public void saveIndex(java.lang.String indexName)
               throws IndexException
throw new RuntimeException("saveIndex is not implemented!"). Save index.

Specified by:
saveIndex in class IndexAdmin
Parameters:
indexName - the index name
Throws:
IndexException - the index exception
See Also:
IndexAdmin.saveIndex(java.lang.String)

SMILA (incubation) API documentation