V- The generic type of the document identifier.
public class ReadIndexTask<V extends Comparable<V>> extends AbstractIndexTask<V> implements Callable<Object>
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 ReadIndexTask(String termText, int termNdx, int numTerms, boolean prefixMatch, double queryTermWeight, FullTextIndex<V> searchEngine, IHitCollector<V> hits)
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.
hits- The map where the hits are being aggregated.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.