|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.lucene.index.ReducibleInMemoryIndexDataKeeper
public class ReducibleInMemoryIndexDataKeeper
Created by The eXo Platform SAS.
| Field Summary | |
|---|---|
org.apache.lucene.store.RAMDirectory |
indexDirectiry
Index storage. |
long |
lastModifedTime
|
| Constructor Summary | |
|---|---|
ReducibleInMemoryIndexDataKeeper(LoggedIndexTransaction<org.apache.lucene.document.Document> changes)
|
|
ReducibleInMemoryIndexDataKeeper(org.apache.lucene.store.RAMDirectory indexDirectiry,
Map<String,org.apache.lucene.document.Document> documentsBuffer,
Map<String,org.apache.lucene.document.Document> pendingDocumentsBuffer,
TransactionLog transactionLog)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.store.Directory |
getDirectory()
|
long |
getDirectorySize(boolean includeInherited)
|
org.apache.lucene.document.Document |
getDocument(String uuid)
|
long |
getDocumentCount()
|
Map<String,org.apache.lucene.document.Document> |
getDocumentsBuffer()
|
org.apache.lucene.index.IndexReader |
getIndexReader()
|
long |
getLastModifedTime()
|
Map<String,org.apache.lucene.document.Document> |
getPendingDocumentsBuffer()
|
TransactionLog |
getTransactionLog()
Return transaction log |
boolean |
isPendingCommited()
|
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 |
| Field Detail |
|---|
public final org.apache.lucene.store.RAMDirectory indexDirectiry
public long lastModifedTime
| Constructor Detail |
|---|
public ReducibleInMemoryIndexDataKeeper(LoggedIndexTransaction<org.apache.lucene.document.Document> changes)
throws IndexException
changes -
IndexException
public ReducibleInMemoryIndexDataKeeper(org.apache.lucene.store.RAMDirectory indexDirectiry,
Map<String,org.apache.lucene.document.Document> documentsBuffer,
Map<String,org.apache.lucene.document.Document> pendingDocumentsBuffer,
TransactionLog transactionLog)
| 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 Map<String,org.apache.lucene.document.Document> getDocumentsBuffer()
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 Map<String,org.apache.lucene.document.Document> getPendingDocumentsBuffer()
public TransactionLog getTransactionLog()
getTransactionLog in interface IndexTransactionResourcepublic boolean isPendingCommited()
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,
IndexTransactionException
save in interface IndexDataKeeper<org.apache.lucene.document.Document>IndexException
IndexTransactionException
public void start()
throws IndexException
start in interface StartableResourceIndexException
public void stop()
throws IndexException
stop in interface StartableResourceIndexException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||