org.alfresco.repo.search.impl.lucene
Interface AVMLuceneIndexer

All Superinterfaces:
BackgroundIndexerAware, Indexer, LuceneIndexer, SupportsBackgroundIndexing, TransactionSynchronisationAwareIndexer
All Known Implementing Classes:
AVMLuceneIndexerImpl

public interface AVMLuceneIndexer
extends LuceneIndexer, BackgroundIndexerAware

AVM specific indxer support


Method Summary
 void createIndex(java.lang.String store, IndexMode mode)
          Create an index for the specified store.
 void deleteIndex(java.lang.String store, IndexMode mode)
          Delete the index for the specified store.
 long getIndexedDocCount()
          Get the number of docs this indexer has indexed so far
 int getLastIndexedSnapshot(java.lang.String store)
          Get the last snapshot in the index - this does not mean that all snapshots before it have been indexed.
 boolean hasIndexBeenCreated(java.lang.String store)
          Has the index been ceated
 void index(java.lang.String store, int srcVersion, int dstVersion, IndexMode mode)
          Index a specified change to a store between two snapshots
 boolean isSnapshotIndexed(java.lang.String store, int id)
          Is the snapshot applied to the index? Is there an entry for any node that was added OR have all the nodes in the transaction been deleted as expected?
 boolean isSnapshotSearchable(java.lang.String store, int id)
          Is snapshot searchable
 
Methods inherited from interface org.alfresco.repo.search.impl.lucene.LuceneIndexer
doReadOnly, getContainerDeletions, getDeleteOnlyNodes, getDeletions, getDeltaId
 
Methods inherited from interface org.alfresco.repo.search.Indexer
createChildRelationship, createNode, deleteChildRelationship, deleteIndex, deleteNode, flushPending, setReadThrough, updateChildRelationship, updateNode
 
Methods inherited from interface org.alfresco.repo.search.TransactionSynchronisationAwareIndexer
commit, isModified, prepare, rollback
 
Methods inherited from interface org.alfresco.repo.search.BackgroundIndexerAware
registerCallBack, updateFullTextSearch
 
Methods inherited from interface org.alfresco.repo.search.SupportsBackgroundIndexing
setFullTextSearchIndexer
 

Method Detail

index

void index(java.lang.String store,
           int srcVersion,
           int dstVersion,
           IndexMode mode)
Index a specified change to a store between two snapshots

Parameters:
store - - the name of the store
srcVersion - - the id of the snapshot before the changeset
dstVersion - - the id of the snapshot created by the change set
mode -

deleteIndex

void deleteIndex(java.lang.String store,
                 IndexMode mode)
Delete the index for the specified store.

Parameters:
store -
mode -

createIndex

void createIndex(java.lang.String store,
                 IndexMode mode)
Create an index for the specified store. This makes sure that the root node for the store is indexed correctly.

Parameters:
store -
mode -

isSnapshotIndexed

boolean isSnapshotIndexed(java.lang.String store,
                          int id)
Is the snapshot applied to the index? Is there an entry for any node that was added OR have all the nodes in the transaction been deleted as expected?

Parameters:
store -
id -
Returns:
- true if applied, false if not

isSnapshotSearchable

boolean isSnapshotSearchable(java.lang.String store,
                             int id)
Is snapshot searchable

Parameters:
store -
id -
Returns:
- true if snapshot has been fully indexed, false if pending or unindexed.

hasIndexBeenCreated

boolean hasIndexBeenCreated(java.lang.String store)
Has the index been ceated

Parameters:
store -
Returns:

getIndexedDocCount

long getIndexedDocCount()
Get the number of docs this indexer has indexed so far

Returns:

getLastIndexedSnapshot

int getLastIndexedSnapshot(java.lang.String store)
Get the last snapshot in the index - this does not mean that all snapshots before it have been indexed.

Parameters:
store -
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.