Package it.unimi.di.big.mg4j.query.nodes
Class Containment
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.Containment
-
- All Implemented Interfaces:
Query,Serializable
public class Containment extends Object implements Query
A node representing the containment of two queries.- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description QueryfirstThe first query.intleftMarginA margin that will be added to the left of each interval of the first query.intrightMarginA margin that will be added to the right of each interval of first query.QuerysecondThe second query.
-
Constructor Summary
Constructors Constructor Description Containment(Query first, Query second)Containment(Query first, Query second, int leftMargin, int rightMargin)
-
-
-
Field Detail
-
first
public final Query first
The first query.
-
second
public final Query second
The second query.
-
leftMargin
public final int leftMargin
A margin that will be added to the left of each interval of the first query.
-
rightMargin
public final int rightMargin
A margin that will be added to the right of each interval of first query.
-
-
Method Detail
-
accept
public <T> T accept(QueryBuilderVisitor<T> visitor) throws QueryBuilderVisitorException
Description copied from interface:QueryAccepts a visitor.- Specified by:
acceptin interfaceQuery- Parameters:
visitor- the visitor.- Returns:
- the result of the visit, or
nullif the visit should stop. - Throws:
QueryBuilderVisitorException- See Also:
Query
-
-