public class HitsFromQuery extends Hits
capturedGroups, docsCounted, docsRetrieved, FETCH_HITS_MIN, hitsCounted, logger
hitsObjId, NO_LIMIT, results, threadPauser
Modifier | Constructor and Description |
---|---|
protected |
HitsFromQuery(QueryInfo queryInfo,
BLSpanQuery sourceQuery,
SearchSettings searchSettings)
Construct a Hits object from a SpanQuery.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doneProcessingAndCounting()
Check if we're done retrieving/counting hits.
|
protected void |
ensureResultsRead(int number)
Ensure that we have read at least as many hits as specified in the parameter.
|
MaxStats |
maxStats()
Did we exceed the maximum number of hits to process/count?
NOTE: this is only valid for the original Hits instance (that
executes the query), and not for any derived Hits instance (window, sorted, filtered, ...).
|
String |
toString() |
capturedGroups, collocations, collocations, collocations, concordances, concordances, docsCountedSoFar, docsCountedTotal, docsProcessedSoFar, docsProcessedTotal, docsStats, emptyList, filter, fromArrays, fromList, fromList, fromList, fromSpanQuery, getHitsInDoc, group, hasCapturedGroups, hitsCountedSoFar, hitsCountedTotal, hitsProcessedAtLeast, hitsProcessedSoFar, hitsProcessedTotal, hitsStats, kwics, numberOfResultObjects, perDocResults, resultsCountedSoFar, resultsCountedTotal, sample, size, sort, window, window
doFilter, doSample, doSort, doWindow, ensureAllResultsRead, field, get, index, isSample, isWindow, iterator, parallelStream, queryInfo, resultsList, resultsObjId, resultsProcessedAtLeast, resultsProcessedSoFar, resultsProcessedTotal, resultsStats, resultsSubList, sampleParameters, stream, threadPauser, windowStats
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected HitsFromQuery(QueryInfo queryInfo, BLSpanQuery sourceQuery, SearchSettings searchSettings) throws WildcardTermTooBroad
queryInfo
- query infosourceQuery
- the query to execute to get the hitssearchSettings
- search settingsWildcardTermTooBroad
- if the query is overly broad (expands to too many terms)protected void ensureResultsRead(int number)
ensureResultsRead
in class Results<Hit>
number
- the minimum number of hits that will have been read when this
method returns (unless there are fewer hits than this); if
negative, reads all hitspublic boolean doneProcessingAndCounting()
Results
doneProcessingAndCounting
in class Results<Hit>
public MaxStats maxStats()
Hits
maxStats
in class Hits
MaxStats.NOT_EXCEEDED
if not available for this instanceCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.