Package org.terrier.realtime.incremental
Class IncrementalMergePolicy
- java.lang.Object
-
- org.terrier.realtime.incremental.IncrementalMergePolicy
-
- Direct Known Subclasses:
IncrementalMergeGeometric
,IncrementalMergeSingle
public class IncrementalMergePolicy extends java.lang.Object
A policy for merging different indices together on disk- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Constructor Summary
Constructors Constructor Description IncrementalMergePolicy(IncrementalIndex index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IncrementalMergePolicy
get(java.lang.String policy, java.util.List<Index> indices, IncrementalIndex index)
Create a new merge thread.boolean
mergeCheck()
Never merge.boolean
mergePolicy()
No merge.void
purgeMerged()
Delete indices which have been merged.
-
-
-
Field Detail
-
indices
protected static java.util.List<Index> indices
-
merged
protected static java.util.List<java.lang.Integer> merged
-
-
Constructor Detail
-
IncrementalMergePolicy
public IncrementalMergePolicy(IncrementalIndex index)
-
-
Method Detail
-
get
public static IncrementalMergePolicy get(java.lang.String policy, java.util.List<Index> indices, IncrementalIndex index)
Create a new merge thread.
-
purgeMerged
public void purgeMerged()
Delete indices which have been merged.
-
mergePolicy
public boolean mergePolicy()
No merge.
-
mergeCheck
public boolean mergeCheck()
Never merge.
-
-