public abstract class AbstractIntersectionQueryExecutor extends AbstractQueryExecutor
Modifier and Type | Field and Description |
---|---|
protected QueryExecutor[] |
executors
The
QueryExecutor s for the contained nodes. |
protected it.unimi.dsi.fastutil.objects.ReferenceSet<it.unimi.di.big.mg4j.index.Index> |
indices |
protected long[] |
nextDocIDs
An array of current nextDocumentID values, for all of the sub nodes.
|
protected QueryNode[] |
nodes
The sub-queries
|
closed, engine, latestDocument, queryNode
Constructor and Description |
---|
AbstractIntersectionQueryExecutor(QueryEngine engine,
QueryNode query,
QueryNode... subNodes)
Constructor from
QueryEngine . |
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. |
dispose, document, getLatestDocument, getQueryEngine, getQueryNode, intervalIterator, intervalIterator, intervalIterators, mayHaveNext, nextDocument, skipTo, weight, weight
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextHit
protected QueryNode[] nodes
protected long[] nextDocIDs
protected it.unimi.dsi.fastutil.objects.ReferenceSet<it.unimi.di.big.mg4j.index.Index> indices
protected QueryExecutor[] executors
QueryExecutor
s for the contained nodes.public AbstractIntersectionQueryExecutor(QueryEngine engine, QueryNode query, QueryNode... subNodes) throws IOException
QueryEngine
.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 <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
public it.unimi.dsi.fastutil.objects.ReferenceSet<it.unimi.di.big.mg4j.index.Index> indices()
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.Copyright © 2021 GATE. All rights reserved.