Enum Class KinesisSinkConfig.MessageFormat

java.lang.Object
java.lang.Enum<KinesisSinkConfig.MessageFormat>
org.apache.pulsar.io.kinesis.KinesisSinkConfig.MessageFormat
所有已实现的接口:
Serializable, Comparable<KinesisSinkConfig.MessageFormat>, Constable
封闭类:
KinesisSinkConfig

public static enum KinesisSinkConfig.MessageFormat extends Enum<KinesisSinkConfig.MessageFormat>
  • 枚举常量详细资料

    • ONLY_RAW_PAYLOAD

      public static final KinesisSinkConfig.MessageFormat ONLY_RAW_PAYLOAD
      Kinesis sink directly publishes pulsar-payload as a message into the kinesis-stream.
    • FULL_MESSAGE_IN_JSON

      public static final KinesisSinkConfig.MessageFormat FULL_MESSAGE_IN_JSON
      Kinesis sink creates a json payload with message-payload, properties and encryptionCtx and publishes json payload to kinesis stream. schema: {"type":"object","properties":{"encryptionCtx":{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{"type":"string"}},"uncompressedMessageSize":{"type":"integer"},"keysMetadataMap":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"keysMapBase64":{"type":"object","additionalProperties":{"type":"string"}},"encParamBase64":{"type":"string"},"compressionType":{"type":"string","enum":["NONE","LZ4","ZLIB"]},"batchSize":{"type":"integer"},"algorithm":{"type":"string"}}},"payloadBase64":{"type":"string"},"properties":{"type":"object","additionalProperties":{"type":"string"}}}} Example: {"payloadBase64":"cGF5bG9hZA==","properties":{"prop1":"value"},"encryptionCtx":{"keysMapBase64":{"key1":"dGVzdDE=","key2":"dGVzdDI="},"keysMetadataMap":{"key1":{"ckms":"cmks-1","version":"v1"},"key2":{"ckms":"cmks-2","version":"v2"}},"metadata":{"ckms":"cmks-1","version":"v1"},"encParamBase64":"cGFyYW0=","algorithm":"algo","compressionType":"LZ4","uncompressedMessageSize":10,"batchSize":10}}
    • FULL_MESSAGE_IN_FB

      public static final KinesisSinkConfig.MessageFormat FULL_MESSAGE_IN_FB
      Kinesis sink sends message serialized in flat-buffer.
  • 方法详细资料

    • values

      public static KinesisSinkConfig.MessageFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KinesisSinkConfig.MessageFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值