public static class MinusQuery.MinusQueryExecutor extends AbstractQueryExecutor
Modifier and Type | Field and Description |
---|---|
protected List<Binding> |
hitsOnCurrentDocument |
protected QueryExecutor |
left |
protected QueryExecutor |
right |
closed, engine, latestDocument, queryNode
Constructor and Description |
---|
MinusQueryExecutor(QueryEngine engine,
MinusQuery qNode) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(it.unimi.di.big.mg4j.search.visitor.DocumentIteratorVisitor<T> visitor) |
<T> T |
acceptOnTruePaths(it.unimi.di.big.mg4j.search.visitor.DocumentIteratorVisitor<T> visitor) |
void |
close()
Closes this
QueryExecutor and releases all resources used. |
it.unimi.dsi.fastutil.objects.ReferenceSet<it.unimi.di.big.mg4j.index.Index> |
indices() |
long |
nextDocument(long greaterThan)
Gets the next document that contains a match, with a document ID greater
than the ID provided in the
from parameter. |
Binding |
nextHit()
Gets the next matching position, in the document last returned by
DocumentIterator.nextDocument() . |
dispose, document, getLatestDocument, getQueryEngine, getQueryNode, intervalIterator, intervalIterator, intervalIterators, mayHaveNext, nextDocument, skipTo, weight, weight
protected QueryExecutor left
protected QueryExecutor right
public MinusQueryExecutor(QueryEngine engine, MinusQuery qNode) throws IOException
IOException
public void close() throws IOException
QueryExecutor
QueryExecutor
and releases all resources used.close
in interface QueryExecutor
close
in class AbstractQueryExecutor
IOException
- if the index files cannot be accessed.public long nextDocument(long greaterThan) throws IOException
QueryExecutor
from
parameter.
This method essentially requests the query executor to skip over a number
of documents that are not desired for external reasons (e.g. when running
a complex query, other query constraints may have already removed a set of
documents from the candidate list).
The query executor will never roll back: all document IDs returned
are in ascending order. This means that if the value provided for the
greaterThan
parameter is lower than the latest document ID
returned, it will have no effect.greaterThan
- a document ID representing the lowest bound (exclusive) for
the requested document ID.greaterThan
, or -1
if no more matching documents
are found.IOException
- if the index files cannot be accessed.public Binding nextHit() throws IOException
QueryExecutor
DocumentIterator.nextDocument()
. Hits are always returned in increasing order
of start offset, but hits that start at the same place may be returned in
any order (i.e. not necessarily longest first or shortest first).Binding
corresponding to the root query node for this
executor. If no further matches are possible on the current document, then
null
is returned.IOException
- if the index files cannot be accessed.public it.unimi.dsi.fastutil.objects.ReferenceSet<it.unimi.di.big.mg4j.index.Index> indices()
public <T> T accept(it.unimi.di.big.mg4j.search.visitor.DocumentIteratorVisitor<T> visitor) throws IOException
IOException
public <T> T acceptOnTruePaths(it.unimi.di.big.mg4j.search.visitor.DocumentIteratorVisitor<T> visitor) throws IOException
IOException
Copyright © 2021 GATE. All rights reserved.