Package org.terrier.realtime.incremental
Class IncrementalDeleteFixedNumber
- java.lang.Object
-
- org.terrier.realtime.incremental.IncrementalDeletePolicy
-
- org.terrier.realtime.incremental.IncrementalDeleteFixedNumber
-
public class IncrementalDeleteFixedNumber extends IncrementalDeletePolicy
Within an incremental index, this is a possible policy for deleting old index shards. We will only hold a fixed number of index shards at any one time. Always drop the oldest one.- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Constructor Summary
Constructors Constructor Description IncrementalDeleteFixedNumber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.Integer>
getIndicesToDelete(java.util.List<Index> indices)
Get a list of indices to delete (if any)-
Methods inherited from class org.terrier.realtime.incremental.IncrementalDeletePolicy
deleteIndex, deletePolicy, get, runPolicy
-
-
-
-
Method Detail
-
getIndicesToDelete
protected java.util.List<java.lang.Integer> getIndicesToDelete(java.util.List<Index> indices)
Get a list of indices to delete (if any)- Overrides:
getIndicesToDelete
in classIncrementalDeletePolicy
-
-