Package it.unimi.di.big.mg4j.query.nodes
Class Consecutive
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.Composite
-
- it.unimi.di.big.mg4j.query.nodes.Consecutive
-
- All Implemented Interfaces:
Query
,Serializable
public class Consecutive extends Composite
A node representing the consecutive composition of the underlying queries.- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int[]
gap
The gap array for this consecutive composition, ornull
for no gaps (seeConsecutiveDocumentIterator
).
-
Constructor Summary
Constructors Constructor Description Consecutive(Query... query)
Consecutive(Query[] query, int[] gap)
-
-
-
Field Detail
-
gap
public final int[] gap
The gap array for this consecutive composition, ornull
for no gaps (seeConsecutiveDocumentIterator
). The array can be long asComposite.query
, or have an additional element representing a final gap: in this case, the index against which the query is resolved must provide document sizes.
-
-
Method Detail
-
accept
public <T> T accept(QueryBuilderVisitor<T> visitor) throws QueryBuilderVisitorException
Description copied from interface:Query
Accepts a visitor.- Parameters:
visitor
- the visitor.- Returns:
- the result of the visit, or
null
if the visit should stop. - Throws:
QueryBuilderVisitorException
- See Also:
Query
-
-