public class EsParam extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| EsParam() | 
| EsParam(EsParam source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getContentKey()Get 非json格式数据的自定义key | 
| String | getDatabasePrimaryKey()Get 转储到ES的消息为Database的binlog时,如果需要同步数据库操作,即增删改的操作到ES时填写数据库表主键 | 
| String | getDateField()Get 消息要映射为 es 索引中 @timestamp 的字段,如果当前配置为空,则使用消息的时间戳进行映射 | 
| String | getDateFormat()Get Es自定义日期后缀 | 
| String | getDocumentIdField()Get 转储到Es中的文档ID取值字段名 | 
| DropCls | getDropCls()Get 当设置成员参数DropInvalidMessageToCls设置为true时,DropInvalidMessage参数失效 | 
| FailureParam | getDropDlq()Get 死信队列 | 
| Boolean | getDropInvalidJsonMessage()Get Es是否抛弃非json格式的消息 | 
| Boolean | getDropInvalidMessage()Get Es是否抛弃解析失败的消息 | 
| String | getIndex()Get Es自定义index名称 | 
| String | getIndexType()Get Es自定义index名称的类型,STRING,JSONPATH,默认为STRING | 
| String | getPassword()Get Es密码 | 
| Long | getPort()Get Es的连接port | 
| EsRecordMapping[] | getRecordMappingList()Get 使用数据订阅格式导入 es 时,消息与 es 索引字段映射关系。不填默认为默认字段匹配 | 
| String | getRecordMappingMode()Get 用来区分当前索引映射,属于新建索引还是存量索引。"EXIST_MAPPING":从存量索引中选择;"NEW_MAPPING":新建索引 | 
| String | getResource()Get Es实例资源Id | 
| Boolean | getSelfBuilt()Get 是否为自建集群 | 
| String | getServiceVip()Get 实例vip | 
| String | getUniqVpcId()Get 实例的vpcId | 
| String | getUserName()Get Es用户名 | 
| void | setContentKey(String ContentKey)Set 非json格式数据的自定义key | 
| void | setDatabasePrimaryKey(String DatabasePrimaryKey)Set 转储到ES的消息为Database的binlog时,如果需要同步数据库操作,即增删改的操作到ES时填写数据库表主键 | 
| void | setDateField(String DateField)Set 消息要映射为 es 索引中 @timestamp 的字段,如果当前配置为空,则使用消息的时间戳进行映射 | 
| void | setDateFormat(String DateFormat)Set Es自定义日期后缀 | 
| void | setDocumentIdField(String DocumentIdField)Set 转储到Es中的文档ID取值字段名 | 
| void | setDropCls(DropCls DropCls)Set 当设置成员参数DropInvalidMessageToCls设置为true时,DropInvalidMessage参数失效 | 
| void | setDropDlq(FailureParam DropDlq)Set 死信队列 | 
| void | setDropInvalidJsonMessage(Boolean DropInvalidJsonMessage)Set Es是否抛弃非json格式的消息 | 
| void | setDropInvalidMessage(Boolean DropInvalidMessage)Set Es是否抛弃解析失败的消息 | 
| void | setIndex(String Index)Set Es自定义index名称 | 
| void | setIndexType(String IndexType)Set Es自定义index名称的类型,STRING,JSONPATH,默认为STRING | 
| void | setPassword(String Password)Set Es密码 | 
| void | setPort(Long Port)Set Es的连接port | 
| void | setRecordMappingList(EsRecordMapping[] RecordMappingList)Set 使用数据订阅格式导入 es 时,消息与 es 索引字段映射关系。不填默认为默认字段匹配 | 
| void | setRecordMappingMode(String RecordMappingMode)Set 用来区分当前索引映射,属于新建索引还是存量索引。"EXIST_MAPPING":从存量索引中选择;"NEW_MAPPING":新建索引 | 
| void | setResource(String Resource)Set Es实例资源Id | 
| void | setSelfBuilt(Boolean SelfBuilt)Set 是否为自建集群 | 
| void | setServiceVip(String ServiceVip)Set 实例vip | 
| void | setUniqVpcId(String UniqVpcId)Set 实例的vpcId | 
| void | setUserName(String UserName)Set Es用户名 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic EsParam()
public EsParam(EsParam source)
public String getResource()
public void setResource(String Resource)
Resource - Es实例资源Idpublic Long getPort()
public void setPort(Long Port)
Port - Es的连接portpublic String getUserName()
public void setUserName(String UserName)
UserName - Es用户名public String getPassword()
public void setPassword(String Password)
Password - Es密码public Boolean getSelfBuilt()
public void setSelfBuilt(Boolean SelfBuilt)
SelfBuilt - 是否为自建集群public String getServiceVip()
public void setServiceVip(String ServiceVip)
ServiceVip - 实例vippublic String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId - 实例的vpcIdpublic Boolean getDropInvalidMessage()
public void setDropInvalidMessage(Boolean DropInvalidMessage)
DropInvalidMessage - Es是否抛弃解析失败的消息public String getIndex()
public void setIndex(String Index)
Index - Es自定义index名称public String getDateFormat()
public void setDateFormat(String DateFormat)
DateFormat - Es自定义日期后缀public String getContentKey()
public void setContentKey(String ContentKey)
ContentKey - 非json格式数据的自定义keypublic Boolean getDropInvalidJsonMessage()
public void setDropInvalidJsonMessage(Boolean DropInvalidJsonMessage)
DropInvalidJsonMessage - Es是否抛弃非json格式的消息public String getDocumentIdField()
public void setDocumentIdField(String DocumentIdField)
DocumentIdField - 转储到Es中的文档ID取值字段名public String getIndexType()
public void setIndexType(String IndexType)
IndexType - Es自定义index名称的类型,STRING,JSONPATH,默认为STRINGpublic DropCls getDropCls()
public void setDropCls(DropCls DropCls)
DropCls - 当设置成员参数DropInvalidMessageToCls设置为true时,DropInvalidMessage参数失效public String getDatabasePrimaryKey()
public void setDatabasePrimaryKey(String DatabasePrimaryKey)
DatabasePrimaryKey - 转储到ES的消息为Database的binlog时,如果需要同步数据库操作,即增删改的操作到ES时填写数据库表主键public FailureParam getDropDlq()
public void setDropDlq(FailureParam DropDlq)
DropDlq - 死信队列public EsRecordMapping[] getRecordMappingList()
public void setRecordMappingList(EsRecordMapping[] RecordMappingList)
RecordMappingList - 使用数据订阅格式导入 es 时,消息与 es 索引字段映射关系。不填默认为默认字段匹配public String getDateField()
public void setDateField(String DateField)
DateField - 消息要映射为 es 索引中 @timestamp 的字段,如果当前配置为空,则使用消息的时间戳进行映射public String getRecordMappingMode()
public void setRecordMappingMode(String RecordMappingMode)
RecordMappingMode - 用来区分当前索引映射,属于新建索引还是存量索引。"EXIST_MAPPING":从存量索引中选择;"NEW_MAPPING":新建索引Copyright © 2025. All rights reserved.