Package it.unimi.di.big.mg4j.query.nodes
Class Prefix
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.Prefix
-
- All Implemented Interfaces:
Query,Serializable
public class Prefix extends Object implements Query
A node representing a set of terms defined by a common prefix.- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description CharSequenceprefixThe common prefix of the set of terms represented by this node.
-
Constructor Summary
Constructors Constructor Description Prefix(CharSequence prefix)
-
-
-
Field Detail
-
prefix
public final CharSequence prefix
The common prefix of the set of terms represented by this node.
-
-
Constructor Detail
-
Prefix
public Prefix(CharSequence prefix)
-
-
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
-
-