@Beta public class YqlParser extends Object implements Parser
This class must be kept in lockstep with VespaSerializer
.
Adding anything here will usually require a corresponding addition in
VespaSerializer.
Modifier and Type | Field and Description |
---|---|
static String |
SORTING_FUNCTION |
static String |
SORTING_LOCALE |
static String |
SORTING_STRENGTH |
Constructor and Description |
---|
YqlParser(ParserEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
List<VespaGroupingStep> |
getGroupingSteps() |
Integer |
getHits()
Give the number of hits expected from the latest parsed query if anything
is explicitly specified.
|
Integer |
getOffset()
Give the offset expected from the latest parsed query if anything is
explicitly specified.
|
Sorting |
getSorting()
The sorting specified in the YQL+ query last parsed.
|
Integer |
getTimeout()
The timeout specified in the YQL+ query last parsed.
|
Set<String> |
getYqlSummaryFields() |
boolean |
isQueryParser() |
QueryTree |
parse(Parsable query)
|
void |
setQueryParser(boolean queryParser) |
void |
setUserQuery(Query userQuery) |
public static final String SORTING_FUNCTION
public static final String SORTING_LOCALE
public static final String SORTING_STRENGTH
public YqlParser(ParserEnvironment environment)
@Beta public boolean isQueryParser()
@Beta public void setQueryParser(boolean queryParser)
@Beta public void setUserQuery(@NonNull Query userQuery)
@Beta public List<VespaGroupingStep> getGroupingSteps()
public Integer getOffset()
public Integer getHits()
public Integer getTimeout()
public Sorting getSorting()
Copyright © 2018. All rights reserved.