|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.RAMTransLog
public class RAMTransLog
A memory based transaction log. Fast, but long running transaciton or large transactions might not fit into memory.
| Constructor Summary | |
|---|---|
RAMTransLog()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the transaction log. |
void |
configure(CompassSettings settings)
Configure using the given settings. |
Directory |
getDirectory()
Returns the Lucene directory the transaction log will be written to |
void |
onDocumentAdded()
A callback notifiying the trasaction log that a document was added (can be used for flushing for example). |
boolean |
shouldUpdateTransSegments()
Returns true if the transaction segments should be written for each change made to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RAMTransLog()
| Method Detail |
|---|
public void configure(CompassSettings settings)
throws CompassException
CompassConfigurable
configure in interface CompassConfigurablesettings - The settings for the configured object
CompassExceptionpublic boolean shouldUpdateTransSegments()
TransLog
shouldUpdateTransSegments in interface TransLogpublic Directory getDirectory()
TransLog
getDirectory in interface TransLogpublic void onDocumentAdded()
TransLog
onDocumentAdded in interface TransLogpublic void close()
TransLog
close in interface TransLog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||