|
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.lucene.LuceneServie
org.eclipse.smila.lucene.LuceneIndexService
public class LuceneIndexService
Lucene Index Service.
| Nested Class Summary | |
|---|---|
static class |
LuceneIndexService.ExecutionMode
Types of errors this pipelet can produce. |
| Field Summary | |
|---|---|
static java.lang.String |
EXECUTION_MODE
name of annotation configuring the type of error. |
static java.lang.String |
PROPERTY_FORCE_UNLOCK_INDEX
Configuration property if to force to unlock a locked index on service activation. |
static java.lang.String |
PROPERTY_TEMPORARY_INDEX_DIR
Configuration property for the index directory - if true, it will be generated and PROPERTY_INDEX_DIR will be ignored. |
| Fields inherited from class org.eclipse.smila.lucene.LuceneServie |
|---|
BUNDLE_NAME, CONFIG_FILE_MAPPINGS, ID_FIELD, INDEX_NAME |
| Fields inherited from interface org.eclipse.smila.processing.ProcessingService |
|---|
PROPERTY_NAME |
| Constructor Summary | |
|---|---|
LuceneIndexService()
|
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
DS activate method. |
void |
createIndex(java.lang.String indexName)
Creates the index. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
void |
deleteIndex(java.lang.String indexName)
Delete index. |
java.util.Iterator<java.lang.String> |
getIndexNames()
Returns the names of all available indexes. |
boolean |
isIndexExists(java.lang.String indexName)
Checks if is index exists. |
Id[] |
process(Blackboard blackboard,
Id[] recordIds)
process records on Blackboard service. |
void |
renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
Rename index. |
void |
reorganizeIndex(java.lang.String indexName)
Reorganize index. |
| Methods inherited from class org.eclipse.smila.lucene.LuceneServie |
|---|
getMappings, loadMappings, unloadMappings |
| 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 PROPERTY_TEMPORARY_INDEX_DIR
public static final java.lang.String PROPERTY_FORCE_UNLOCK_INDEX
public static final java.lang.String EXECUTION_MODE
| Constructor Detail |
|---|
public LuceneIndexService()
| Method Detail |
|---|
protected void activate(ComponentContext context)
throws java.lang.Exception
context - ComponentContext
java.lang.Exception - if any error occurs
protected void deactivate(ComponentContext context)
throws java.lang.Exception
context - the ComponentContext
java.lang.Exception - if any error occurs
public Id[] process(Blackboard blackboard,
Id[] recordIds)
throws ProcessingException
process in interface ProcessingServiceblackboard - Blackboard service managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.ProcessingService.process(Blackboard, Id[])
public boolean isIndexExists(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void reorganizeIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void createIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void deleteIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
public void renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
throws IndexException
indexName - the index namenewIndexName - the new index name
IndexException - the index exceptionpublic java.util.Iterator<java.lang.String> getIndexNames()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||