V- The generic type of the document identifier.
public class CountIndexTask<V extends Comparable<V>> extends AbstractIndexTask<V>
The procedure uses an
IRangeQuery.rangeIterator(byte, byte) to
perform a key range scan for a specific term. The range iterator will
automatically issue queries, obtaining a "chunk" of results at a time. Those
results are aggregated on the
Hit collection, which is maintained in
a thread-safe hash map.
ISimpleSplitHandler imposes the constraint that index
partitions may only fall on a term boundary, hence all tuples for any given
term will always be found on the same index partition.
|Constructor and Description|
Setup a task that will perform a range scan for entries matching the search term.
public CountIndexTask(String termText, int termNdx, int numTerms, boolean prefixMatch, double queryTermWeight, FullTextIndex<V> searchEngine)
termText- The term text for the search term.
termNdx- The index of this term within the overall search.
numTerms- The overall number of search terms.
trueany term having termText as a prefix will be matched. Otherwise the term must be an exact match for the termText.
queryTermWeight- The weight for the search term.
searchEngine- The search engine.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.