Package it.unimi.di.big.mg4j.query.nodes
Class Difference
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.Difference
-
- All Implemented Interfaces:
Query,Serializable
public class Difference extends Object implements Query
A node representing a difference of two queries.- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intleftMarginA margin that will be added to the left of each interval of the subtrahend.QueryminuendThe minuend query.intrightMarginA margin that will be added to the right of each interval of the subtrahend.QuerysubtrahendThe subtrahend query.
-
Constructor Summary
Constructors Constructor Description Difference(Query minuend, Query subtrahend)Difference(Query minuend, Query subtrahend, int leftMargin, int rightMargin)
-
-
-
Field Detail
-
minuend
public final Query minuend
The minuend query.
-
subtrahend
public final Query subtrahend
The subtrahend query.
-
leftMargin
public final int leftMargin
A margin that will be added to the left of each interval of the subtrahend.
-
rightMargin
public final int rightMargin
A margin that will be added to the right of each interval of the subtrahend.
-
-
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
-
-