Package it.unimi.di.big.mg4j.query.nodes
Class Weight
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.Weight
-
- All Implemented Interfaces:
Query,Serializable
public class Weight extends Object implements Query
A node representing a weight selection.- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
-
-
Field Detail
-
weight
public final double weight
The weight selection.
-
query
public final Query query
The only underlying node.
-
-
Constructor Detail
-
Weight
public Weight(double weight, Query 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
-
-