Interface SnIndexerService
-
- All Known Implementing Classes:
DefaultSnIndexerService
public interface SnIndexerServiceService for indexer operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnIndexerRequestcreateFullIndexerRequest(java.lang.String indexTypeId, SnIndexerItemSource indexerItemSource)Creates a full indexer request.SnIndexerRequestcreateFullIndexerRequest(java.lang.String indexTypeId, SnIndexerItemSource indexerItemSource, SnProgressTracker progressTracker)Creates a full indexer request.SnIndexerRequestcreateIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations)Creates an incremental indexer request.SnIndexerRequestcreateIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations, SnProgressTracker progressTracker)Creates an incremental indexer request.SnIndexerItemSourcecreateItemSource(AbstractSnIndexerItemSourceModel itemSource, java.util.Map<java.lang.String,java.lang.Object> parameters)Creates a new instance ofSnIndexerItemSource.SnIndexerItemSourceOperationcreateItemSourceOperation(SnIndexerItemSourceOperationModel itemSourceOperation, java.util.Map<java.lang.String,java.lang.Object> parameters)Creates a new instance ofSnIndexerItemSourceOperation.SnIndexerResponseindex(SnIndexerRequest indexerRequest)Starts a new indexer operation.
-
-
-
Method Detail
-
createItemSource
SnIndexerItemSource createItemSource(AbstractSnIndexerItemSourceModel itemSource, java.util.Map<java.lang.String,java.lang.Object> parameters) throws SnIndexerException
Creates a new instance ofSnIndexerItemSource.- Parameters:
itemSource- - the item sourceparameters- - the parameters- Returns:
- the new instance of
SnIndexerItemSource - Throws:
SnIndexerException- if an error occurs
-
createItemSourceOperation
SnIndexerItemSourceOperation createItemSourceOperation(SnIndexerItemSourceOperationModel itemSourceOperation, java.util.Map<java.lang.String,java.lang.Object> parameters) throws SnIndexerException
Creates a new instance ofSnIndexerItemSourceOperation.- Parameters:
itemSourceOperation- - the item source operationparameters- - the parameters- Returns:
- the new instance of
SnIndexerItemSourceOperation - Throws:
SnIndexerException- if an error occurs
-
createFullIndexerRequest
SnIndexerRequest createFullIndexerRequest(java.lang.String indexTypeId, SnIndexerItemSource indexerItemSource) throws SnIndexerException
Creates a full indexer request.- Parameters:
indexTypeId- - the index type idindexerItemSource- - the indexer item source- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createFullIndexerRequest
SnIndexerRequest createFullIndexerRequest(java.lang.String indexTypeId, SnIndexerItemSource indexerItemSource, SnProgressTracker progressTracker) throws SnIndexerException
Creates a full indexer request.- Parameters:
indexTypeId- - the index type idindexerItemSource- - the indexer item sourceprogressTracker- - the progress tracker- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createIncrementalIndexerRequest
SnIndexerRequest createIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations) throws SnIndexerException
Creates an incremental indexer request.- Parameters:
indexTypeId- - the index type idindexerOperationType- - the indexer operation typeindexerItemSourceOperations- - the indexer item source operations- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createIncrementalIndexerRequest
SnIndexerRequest createIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations, SnProgressTracker progressTracker) throws SnIndexerException
Creates an incremental indexer request.- Parameters:
indexTypeId- - the index type idindexerOperationType- - the indexer operation typeindexerItemSourceOperations- - the indexer item source operationsprogressTracker- - the progress tracker- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
index
SnIndexerResponse index(SnIndexerRequest indexerRequest) throws SnIndexerException
Starts a new indexer operation.- Parameters:
indexerRequest- - the indexer request- Returns:
- the indexer response
- Throws:
SnIndexerException- if an error occurs
-
-