public class KafkaConsumerContent extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| KafkaConsumerContent() | 
| KafkaConsumerContent(KafkaConsumerContent 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 | 
|---|---|
| Boolean | getEnableTag()Get Whether to ship tag information
This parameter does not need to be set when `Format` is set to `0`. | 
| Long | getFormat()Get Consumption data format. | 
| Long | getJsonType()Get JSON data format:
1: Not escaped (default format)
2: Escaped
Deliver in JSON format.JsonType is 1: Consistent with the original log, not escaped. | 
| String[] | getMetaFields()Get Metadata information list. | 
| Long | getTagTransaction()Get Tag data processing mode: 1: Do not tile (default); 2: Tile. | 
| void | setEnableTag(Boolean EnableTag)Set Whether to ship tag information
This parameter does not need to be set when `Format` is set to `0`. | 
| void | setFormat(Long Format)Set Consumption data format. | 
| void | setJsonType(Long JsonType)Set JSON data format:
1: Not escaped (default format)
2: Escaped
Deliver in JSON format.JsonType is 1: Consistent with the original log, not escaped. | 
| void | setMetaFields(String[] MetaFields)Set Metadata information list. | 
| void | setTagTransaction(Long TagTransaction)Set Tag data processing mode: 1: Do not tile (default); 2: Tile. | 
| 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 KafkaConsumerContent()
public KafkaConsumerContent(KafkaConsumerContent source)
public Long getFormat()
public void setFormat(Long Format)
Format - Consumption data format. Valid values: 0 (original content) and 1 (JSON).public Boolean getEnableTag()
public void setEnableTag(Boolean EnableTag)
EnableTag - Whether to ship tag information
This parameter does not need to be set when `Format` is set to `0`.public String[] getMetaFields()
public void setMetaFields(String[] MetaFields)
MetaFields - Metadata information list. Valid values: \_\_SOURCE\_\_, \_\_FILENAME\_\_,
\_\_TIMESTAMP\_\_, \_\_HOSTNAME\_\_, and \_\_PKGID\_\_.
This parameter does not need to be set when `Format` is set to `0`.public Long getTagTransaction()
public void setTagTransaction(Long TagTransaction)
TagTransaction - Tag data processing mode: 1: Do not tile (default); 2: Tile.
Untiled example:
TAG information: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`
Untiled: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`
Tiled example:
TAG information: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`
Tiled: `{"__TAG__.fieldA":200,"__TAG__.fieldB":"text"}`
Note: This field may return null, indicating that no valid values can be obtained.public Long getJsonType()
public void setJsonType(Long JsonType)
JsonType - JSON data format:
1: Not escaped (default format)
2: Escaped
Deliver in JSON format.JsonType is 1: Consistent with the original log, not escaped. Example:
Original log: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`
Deliver to CKafka: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`JsonType is 2: escaped. Example:Original log: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`
Deliver to CKafka: `{"a":"aa","b":"{\"b1\":\"b1b1\", \"c1\":\"c1c1\"}"}`Copyright © 2025. All rights reserved.