public abstract class TimeFunctions extends Object
GroupingExpression
. Apart from offering
per-function factory methods, this class also contains a newInstance(com.yahoo.search.grouping.request.TimeFunctions.Type,
GroupingExpression)
method which is useful for runtime construction of grouping requests.Modifier and Type | Class and Description |
---|---|
static class |
TimeFunctions.Type
Defines the different types of timestamps-functions that are available.
|
Constructor and Description |
---|
TimeFunctions() |
public static FunctionNode newInstance(TimeFunctions.Type type, GroupingExpression exp)
GroupingExpression
.type
- The type of function to create.exp
- The expression to evaluate, must evaluate to a long.public static DateFunction newDate(GroupingExpression exp)
DateFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static DayOfMonthFunction newDayOfMonth(GroupingExpression exp)
DayOfMonthFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static DayOfWeekFunction newDayOfWeek(GroupingExpression exp)
DayOfWeekFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static DayOfYearFunction newDayOfYear(GroupingExpression exp)
DayOfYearFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static HourOfDayFunction newHourOfDay(GroupingExpression exp)
HourOfDayFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static MinuteOfHourFunction newMinuteOfHour(GroupingExpression exp)
MinuteOfHourFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static MonthOfYearFunction newMonthOfYear(GroupingExpression exp)
MonthOfYearFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static SecondOfMinuteFunction newSecondOfMinute(GroupingExpression exp)
SecondOfMinuteFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.public static YearFunction newYear(GroupingExpression exp)
YearFunction
for the given GroupingExpression
.exp
- The expression to evaluate, must evaluate to a long.Copyright © 2018. All rights reserved.