public class DateMathFunction extends MultiDateFunction
DateMathFunction returns a start date modified by a list of DateMath operations.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
sources| Constructor and Description |
|---|
DateMathFunction(ValueSource[] sources) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
func(int doc,
FunctionValues[] valsArr) |
protected String |
name() |
description, equals, getValues, hashCodecreateWeight, getSortField, newContext, toStringpublic static final String NAME
public DateMathFunction(ValueSource[] sources)
sources - A list of ValueSource objects. The first element in the list
should be a DateFieldSource or ConstDateSource object which
represents the starting date. The rest of the field should be BytesRefFieldSource
or ConstStringSource objects which contain the DateMath operations to perform on
the start date.protected String name()
name in class MultiDateFunctionprotected long func(int doc,
FunctionValues[] valsArr)
func in class MultiDateFunctionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.