Package org.terrier.realtime.matching
Class IncrementalSelectiveMatching
- java.lang.Object
-
- org.terrier.realtime.matching.IncrementalSelectiveMatching
-
- Direct Known Subclasses:
IncrementalSelectiveMostRecent
public class IncrementalSelectiveMatching extends java.lang.Object
This class is used by the incremental indexer to do selective matching on a MultiIndex structure. The basic idea is that you specify a policy to determine which of the index shards actually get used for each specific query. This is useful because each shard can be seen as a subset of the documents indexed for a specific time, hence this class enables one to specify that I want to retrieve from only the last h hours of documents for example. What selective matching actually means will be dependent upon the flush policy that is selected, i.e. is the boundary for a shard based on time, number of documents, etc.- Since:
- 4.0
- Author:
- Richard McCreadie
-
-
Constructor Summary
Constructors Constructor Description IncrementalSelectiveMatching()
Empty Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IncrementalSelectiveMatching
get(java.lang.String policy)
Get an new IncrementalSelectiveMatching policy object of the specified type.java.util.List<Index>
getSelectedIndices(java.util.List<Index> indices)
Return all indices (default)
-
-
-
Method Detail
-
get
public static IncrementalSelectiveMatching get(java.lang.String policy)
Get an new IncrementalSelectiveMatching policy object of the specified type.- Parameters:
policy
- a string describing the policy to be applied. "mostrecent" results inIncrementalSelectiveMostRecent
- Returns:
IncrementalSelectiveMostRecent
unless policy is "mostrecent"
-
-