Enum KinesisSinkConfig.MessageFormat

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FULL_MESSAGE_IN_FB
      Kinesis sink sends message serialized in flat-buffer.
      FULL_MESSAGE_IN_JSON
      Kinesis sink creates a json payload with message-payload, properties and encryptionCtx and publishes json payload to kinesis stream.
      ONLY_RAW_PAYLOAD
      Kinesis sink directly publishes pulsar-payload as a message into the kinesis-stream.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static KinesisSinkConfig.MessageFormat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static KinesisSinkConfig.MessageFormat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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}}
    • Method Detail

      • values

        public static KinesisSinkConfig.MessageFormat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KinesisSinkConfig.MessageFormat c : KinesisSinkConfig.MessageFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KinesisSinkConfig.MessageFormat valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null