V
- The generic type of the document identifier.public class ReadIndexTask<V extends Comparable<V>> extends AbstractIndexTask<V> implements Callable<Object>
Hit
basis.
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.
Note: An 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.
fromKey, numQueryTerms, queryTerm, queryTermNdx, queryTermWeight, toKey
Constructor and Description |
---|
ReadIndexTask(String termText,
int termNdx,
int numTerms,
boolean prefixMatch,
double queryTermWeight,
FullTextIndex<V> searchEngine,
IHitCollector<V> hits)
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.prefixMatch
- When true
any 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.