Package org.terrier.realtime.incremental
Class IncrementalMergeSingle
- java.lang.Object
-
- org.terrier.realtime.incremental.IncrementalMergePolicy
-
- org.terrier.realtime.incremental.IncrementalMergeSingle
-
- All Implemented Interfaces:
java.lang.Runnable
public class IncrementalMergeSingle extends IncrementalMergePolicy implements java.lang.Runnable
Merge flushed index partitions into a single partition.- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Field Summary
-
Fields inherited from class org.terrier.realtime.incremental.IncrementalMergePolicy
indices, merged
-
-
Constructor Summary
Constructors Constructor Description IncrementalMergeSingle(IncrementalIndex index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
mergeCheck()
Is merging required?boolean
mergePolicy()
Is merging configured?void
run()
Merge flushed index partitions into a single partition.-
Methods inherited from class org.terrier.realtime.incremental.IncrementalMergePolicy
get, purgeMerged
-
-
-
-
Constructor Detail
-
IncrementalMergeSingle
public IncrementalMergeSingle(IncrementalIndex index)
-
-
Method Detail
-
mergePolicy
public boolean mergePolicy()
Is merging configured?- Overrides:
mergePolicy
in classIncrementalMergePolicy
-
mergeCheck
public boolean mergeCheck()
Is merging required?- Overrides:
mergeCheck
in classIncrementalMergePolicy
-
run
public void run()
Merge flushed index partitions into a single partition.- Specified by:
run
in interfacejava.lang.Runnable
-
-