public class DecayFuncGeoParam extends DecayParam
DecayFunction中设置参数,适用于Geo-point类型field。origin为经纬度坐标点,scale和offset是以米为单位的Double类型值,其中scale应大于0,offset应大于等于0。| Modifier and Type | Class and Description |
|---|---|
static class |
DecayFuncGeoParam.Builder |
DecayParam.DecayFuncUnknownParam, DecayParam.ParamType| Constructor and Description |
|---|
DecayFuncGeoParam() |
DecayFuncGeoParam(String origin,
Double scale,
Double offset) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getOffset() |
String |
getOrigin() |
Double |
getScale() |
DecayParam.ParamType |
getType()
获取param类型
|
static DecayFuncGeoParam.Builder |
newBuilder() |
void |
setOffset(Double offset) |
void |
setOrigin(String origin) |
void |
setScale(Double scale) |
unknownTypeParampublic String getOrigin()
public void setOrigin(String origin)
public Double getScale()
public void setScale(Double scale)
public Double getOffset()
public void setOffset(Double offset)
public DecayParam.ParamType getType()
DecayParamgetType in class DecayParampublic static DecayFuncGeoParam.Builder newBuilder()
Copyright © 2024. All Rights Reserved.