Package org.terrier.realtime.incremental
Class IncrementalFlushPolicy
- java.lang.Object
-
- org.terrier.realtime.incremental.IncrementalFlushPolicy
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
IncrementalFlushDocs
,IncrementalFlushMemory
,IncrementalFlushTime
public class IncrementalFlushPolicy extends java.lang.Object implements java.lang.Runnable
Policy for flushing out documents in an index to disks- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Constructor Summary
Constructors Constructor Description IncrementalFlushPolicy(IncrementalIndex index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
flushCheck()
Never flush.boolean
flushPolicy()
No flush.static IncrementalFlushPolicy
get(java.lang.String policy, java.util.List<Index> indices, IncrementalIndex index)
Create a new flush thread.void
run()
Flush contents of in-memory index to disk.
-
-
-
Constructor Detail
-
IncrementalFlushPolicy
public IncrementalFlushPolicy(IncrementalIndex index)
-
-
Method Detail
-
get
public static IncrementalFlushPolicy get(java.lang.String policy, java.util.List<Index> indices, IncrementalIndex index)
Create a new flush thread.
-
flushPolicy
public boolean flushPolicy()
No flush.
-
flushCheck
public boolean flushCheck()
Never flush.
-
run
public void run()
Flush contents of in-memory index to disk.- Specified by:
run
in interfacejava.lang.Runnable
-
-