Package org.terrier.realtime.incremental
Class IncrementalFlushMemory
- java.lang.Object
-
- org.terrier.realtime.incremental.IncrementalFlushPolicy
-
- org.terrier.realtime.incremental.IncrementalFlushMemory
-
- All Implemented Interfaces:
java.lang.Runnable
public class IncrementalFlushMemory extends IncrementalFlushPolicy
An IncrementalFlushPolicy that will flush an index to disk after a memory-used threshold has been reached.- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Constructor Summary
Constructors Constructor Description IncrementalFlushMemory(IncrementalIndex index)
Get max memory from terrier.properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
flushCheck()
Is flushing required?boolean
flushPolicy()
Is flushing configured?-
Methods inherited from class org.terrier.realtime.incremental.IncrementalFlushPolicy
get, run
-
-
-
-
Constructor Detail
-
IncrementalFlushMemory
public IncrementalFlushMemory(IncrementalIndex index)
Get max memory from terrier.properties.
-
-
Method Detail
-
flushPolicy
public boolean flushPolicy()
Is flushing configured?- Overrides:
flushPolicy
in classIncrementalFlushPolicy
-
flushCheck
public boolean flushCheck()
Is flushing required?- Overrides:
flushCheck
in classIncrementalFlushPolicy
-
-