Class GroupingParser
java.lang.Object
com.yahoo.search.grouping.request.parser.GroupingParser
- All Implemented Interfaces:
GroupingParserConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface com.yahoo.search.grouping.request.parser.GroupingParserConstants
ACCURACY, ACOS, ACOSH, ADD, ALIAS, ALL, AND, ARRAY, AS, ASIN, ASINH, AT, ATAN, ATANH, ATTRIBUTE, AVG, BUCKET, CAT, CBRT, COMMA, COS, COSH, COUNT, DEBUGWAIT, DECIMAL, DEFAULT, DIV, DOCIDNSSPECIFIC, DOLLAR, DOT, EACH, EOF, EQ, EXP, EXPONENT, FALSE, FIXEDWIDTH, FLOAT, FLOOR, GROUP, GT, HEX, HINT, HYPOT, IDENTIFIER, INF, INFIX_ADD, INFIX_DIV, INFIX_MOD, INFIX_MUL, INFIX_SUB, INTEGER, INTERPOLATEDLOOKUP, LBRACE, LBRACKET, LCURLY, LOG, LOG10, LOG1P, LT, MATH, MAX, MD5, MIN, MOD, MUL, NEG, NEGINF, NORMALIZESUBJECT, NOW, OCTAL, OR, ORDER, OUTPUT, POW, PRECISION, PREDEFINED, RBRACE, RBRACKET, RCURLY, RELEVANCE, REVERSE, SCOLON, SIN, SINH, SIZE, SORT, SPACE, SQRT, STDDEV, STRCAT, STRING, STRLEN, SUB, SUM, SUMMARY, TAN, TANH, TIME, TIME_DATE, TIME_DAYOFMONTH, TIME_DAYOFWEEK, TIME_DAYOFYEAR, TIME_HOUROFDAY, TIME_MINUTEOFHOUR, TIME_MONTHOFYEAR, TIME_SECONDOFMINUTE, TIME_YEAR, TODOUBLE, tokenImage, TOLONG, TORAW, TOSTRING, TRUE, UCA, WHERE, X, XOR, XORBIT, Y, ZCURVE
-
Constructor Summary
ConstructorDescriptionGroupingParser
(CharStream stream) Constructor with user supplied CharStream.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
add()
final AddFunction
final GroupingOperation
allOperation
(GroupingOperation parent) final AndFunction
final ArrayAtLookup
arrayAtLookup
(GroupingOperation parent) final AttributeFunction
final AttributeValue
final GroupingExpression
final BooleanValue
final void
bucket
(GroupingOperation grp, BucketResolver resolver) final void
final CatFunction
final void
comma()
final ConstantValue
final ConstantValue
final CountAggregator
final DebugWaitFunction
final void
Disable tracing.final void
div()
final DivFunction
final DocIdNsSpecificValue
final GroupingOperation
eachOperation
(GroupingOperation parent) final void
Enable tracing.final void
eq()
final GroupingExpression
exp
(GroupingOperation grp) final GroupingExpression
final List<GroupingExpression>
expList
(GroupingOperation grp) final GroupingExpression
expMath
(GroupingOperation grp) final FixedWidthFunction
Generate ParseException.final Token
final Token
getToken
(int index) final void
gt()
final String
final void
inf()
final InfiniteValue
final InfiniteValue
final InterpolatedLookup
interpolatedLookup
(GroupingOperation parent) final void
lbrace()
final void
lbracket()
final void
lcurly()
final void
lt()
final FunctionNode
final GroupingExpression
final GroupingExpression
final GroupingExpression
final void
mod()
final ModFunction
final void
mul()
final MulFunction
final GroupingExpression
final void
neginf()
final NormalizeSubjectFunction
final NowFunction
final Number
number()
final GroupingOperation
operation
(GroupingOperation parent) final void
operationBody
(GroupingOperation parent) final OrFunction
final PredefinedFunction
final RawValue
final void
rbrace()
final void
rbracket()
final void
rcurly()
void
ReInit
(CharStream stream) Reinitialise.void
Reinitialisefinal RelevanceValue
final GroupingOperation
request()
final List<GroupingOperation>
final ReverseFunction
final GroupingOperation
root()
final void
scolon()
final Number
final SizeFunction
final SortFunction
final void
space()
final StrCatFunction
final String
string()
final StringValue
final StringValue
final StrLenFunction
final void
sub()
final SubFunction
final SumAggregator
final SummaryValue
final FunctionNode
final ToDoubleFunction
final ToLongFunction
final ToRawFunction
final ToStringFunction
final boolean
final FunctionNode
final GroupingExpression
value
(GroupingOperation grp) final String
where()
final XorBitFunction
final GroupingExpression
final FunctionNode
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
GroupingParser
Constructor with user supplied CharStream.- Parameters:
stream
- stream to init with
-
GroupingParser
Constructor with generated Token Manager.- Parameters:
tm
- Token manager to use
-
-
Method Details
-
requestList
- Throws:
ParseException
-
request
- Throws:
ParseException
-
root
- Throws:
ParseException
-
operation
- Throws:
ParseException
-
allOperation
- Throws:
ParseException
-
eachOperation
- Throws:
ParseException
-
operationBody
- Throws:
ParseException
-
where
- Throws:
ParseException
-
expList
- Throws:
ParseException
-
exp
- Throws:
ParseException
-
expAlias
- Throws:
ParseException
-
expMath
- Throws:
ParseException
-
value
- Throws:
ParseException
-
addFunction
- Throws:
ParseException
-
andFunction
- Throws:
ParseException
-
attributeValue
- Throws:
ParseException
-
attributeFunction
- Throws:
ParseException
-
arrayAtLookup
- Throws:
ParseException
-
interpolatedLookup
- Throws:
ParseException
-
avgExpression
- Throws:
ParseException
-
catFunction
- Throws:
ParseException
-
constantValue
- Throws:
ParseException
-
constantValueSigned
- Throws:
ParseException
-
infiniteNegativeValue
- Throws:
ParseException
-
infinitePositiveValue
- Throws:
ParseException
-
countAggregator
- Throws:
ParseException
-
debugWaitFunction
- Throws:
ParseException
-
divFunction
- Throws:
ParseException
-
docIdNsSpecificValue
- Throws:
ParseException
-
fixedWidthFunction
- Throws:
ParseException
-
maxExpression
- Throws:
ParseException
-
md5Function
- Throws:
ParseException
-
minExpression
- Throws:
ParseException
-
modFunction
- Throws:
ParseException
-
mulFunction
- Throws:
ParseException
-
negFunction
- Throws:
ParseException
-
normalizeSubjectFunction
public final NormalizeSubjectFunction normalizeSubjectFunction(GroupingOperation grp) throws ParseException - Throws:
ParseException
-
nowFunction
- Throws:
ParseException
-
orFunction
- Throws:
ParseException
-
predefinedFunction
- Throws:
ParseException
-
relevanceValue
- Throws:
ParseException
-
reverseFunction
- Throws:
ParseException
-
sizeFunction
- Throws:
ParseException
-
sortFunction
- Throws:
ParseException
-
stringValue
- Throws:
ParseException
-
rawValue
- Throws:
ParseException
-
stddevAggregator
public final StandardDeviationAggregator stddevAggregator(GroupingOperation grp) throws ParseException - Throws:
ParseException
-
stringValueUnquoted
- Throws:
ParseException
-
strCatFunction
- Throws:
ParseException
-
strLenFunction
- Throws:
ParseException
-
subFunction
- Throws:
ParseException
-
sumAggregator
- Throws:
ParseException
-
summaryValue
- Throws:
ParseException
-
timeFunction
- Throws:
ParseException
-
mathFunction
- Throws:
ParseException
-
ucaFunction
- Throws:
ParseException
-
zcurveFunction
- Throws:
ParseException
-
toDoubleFunction
- Throws:
ParseException
-
toLongFunction
- Throws:
ParseException
-
toRawFunction
- Throws:
ParseException
-
toStringFunction
- Throws:
ParseException
-
xorExpression
- Throws:
ParseException
-
xorBitFunction
- Throws:
ParseException
-
bucket
- Throws:
ParseException
-
signedNumber
- Throws:
ParseException
-
number
- Throws:
ParseException
-
booleanValue
- Throws:
ParseException
-
byteValue
- Throws:
ParseException
-
string
- Throws:
ParseException
-
identifier
- Throws:
ParseException
-
add
- Throws:
ParseException
-
comma
- Throws:
ParseException
-
div
- Throws:
ParseException
-
eq
- Throws:
ParseException
-
lt
- Throws:
ParseException
-
gt
- Throws:
ParseException
-
inf
- Throws:
ParseException
-
neginf
- Throws:
ParseException
-
lbracket
- Throws:
ParseException
-
rbracket
- Throws:
ParseException
-
lbrace
- Throws:
ParseException
-
lcurly
- Throws:
ParseException
-
mod
- Throws:
ParseException
-
mul
- Throws:
ParseException
-
rbrace
- Throws:
ParseException
-
rcurly
- Throws:
ParseException
-
sub
- Throws:
ParseException
-
scolon
- Throws:
ParseException
-
space
- Throws:
ParseException
-
ReInit
Reinitialise.- Parameters:
stream
- stream to init with
-
ReInit
Reinitialise- Parameters:
tm
- Token manager to use
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-