use of com.yahoo.searchlib.expression.TimeStampFunctionNode in project vespa by vespa-engine.
the class ExpressionConverter method toTime.
private TimeStampFunctionNode toTime(GroupingExpression arg, TimeStampFunctionNode.TimePart timePart) {
if (timeOffset == 0) {
return new TimeStampFunctionNode(toExpressionNode(arg), timePart, true);
}
AddFunctionNode exp = new AddFunctionNode();
exp.addArg(toExpressionNode(arg));
exp.addArg(new ConstantNode(new IntegerResultNode(timeOffset)));
return new TimeStampFunctionNode(exp, timePart, true);
}
Aggregations