|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.lucene.index.PersistedIndex
public class PersistedIndex
Created by The eXo Platform SAS.
| Constructor Summary | |
|---|---|
PersistedIndex(org.apache.lucene.store.Directory directory)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.store.Directory |
getDirectory()
|
long |
getDirectorySize(boolean includeInherited)
|
org.apache.lucene.document.Document |
getDocument(String uuid)
|
long |
getDocumentCount()
|
org.apache.lucene.index.IndexReader |
getIndexReader()
|
long |
getLastModifedTime()
|
boolean |
isStarted()
|
boolean |
isStoped()
|
IndexTransactionModificationReport |
save(IndexTransaction<org.apache.lucene.document.Document> changes)
Saves the IndexTransaction from this storage |
void |
start()
Allocate resources |
void |
stop()
Dispose resources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistedIndex(org.apache.lucene.store.Directory directory)
| Method Detail |
|---|
public org.apache.lucene.store.Directory getDirectory()
throws IndexException
getDirectory in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>IndexExceptionpublic long getDirectorySize(boolean includeInherited)
getDirectorySize in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>
public org.apache.lucene.document.Document getDocument(String uuid)
throws IndexException
getDocument in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>IndexExceptionpublic long getDocumentCount()
getDocumentCount in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>
public org.apache.lucene.index.IndexReader getIndexReader()
throws IndexException
getIndexReader in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>IndexExceptionpublic long getLastModifedTime()
getLastModifedTime in interface IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>public boolean isStarted()
isStarted in interface StartableResourcepublic boolean isStoped()
isStoped in interface StartableResource
public IndexTransactionModificationReport save(IndexTransaction<org.apache.lucene.document.Document> changes)
throws IndexException
save in interface IndexDataKeeper<org.apache.lucene.document.Document>IndexExceptionpublic void start()
start in interface StartableResourcestart in interface Startablepublic void stop()
stop in interface StartableResourcestop in interface Startable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||