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 CharSequence
prefix
The 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:Query
Accepts a visitor.- Specified by:
accept
in interfaceQuery
- Parameters:
visitor
- the visitor.- Returns:
- the result of the visit, or
null
if the visit should stop. - Throws:
QueryBuilderVisitorException
- See Also:
Query
-
-