public class DecayFuncDateParam extends DecayParam
Used for setting parameters in DecayFunction, applicable to Date type fields. When setting origin, you can choose either a Long type nanosecond timestamp or a String type that conforms to the time format string; please set one of them. For scale and offset, please use the DateTimeValue type for time settings. The largest supported time unit is DateTimeUnit.DAY, where scale should be greater than 0 and offset should be greater than or equal to 0.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DecayFuncDateParam.Builder |
DecayParam.DecayFuncUnknownParam, DecayParam.ParamType| 构造器和说明 |
|---|
DecayFuncDateParam() |
DecayFuncDateParam(Long originLong,
String originString,
DateTimeValue scale,
DateTimeValue offset) |
| 限定符和类型 | 方法和说明 |
|---|---|
DateTimeValue |
getOffset() |
Long |
getOriginLong() |
String |
getOriginString() |
DateTimeValue |
getScale() |
DecayParam.ParamType |
getType()
Get the type of param
|
static DecayFuncDateParam.Builder |
newBuilder() |
void |
setOffset(DateTimeValue offset) |
void |
setOriginLong(Long originLong) |
void |
setOriginString(String originString) |
void |
setScale(DateTimeValue scale) |
unknownTypeParampublic DecayFuncDateParam()
public DecayFuncDateParam(Long originLong, String originString, DateTimeValue scale, DateTimeValue offset)
public Long getOriginLong()
public void setOriginLong(Long originLong)
public String getOriginString()
public void setOriginString(String originString)
public DateTimeValue getScale()
public void setScale(DateTimeValue scale)
public DateTimeValue getOffset()
public void setOffset(DateTimeValue offset)
public DecayParam.ParamType getType()
DecayParamgetType 在类中 DecayParampublic static DecayFuncDateParam.Builder newBuilder()
Copyright © 2025. All Rights Reserved.