Class PulsarClientImplementationBindingImpl

  • All Implemented Interfaces:
    org.apache.pulsar.client.internal.PulsarClientImplementationBinding

    public final class PulsarClientImplementationBindingImpl
    extends java.lang.Object
    implements org.apache.pulsar.client.internal.PulsarClientImplementationBinding
    Helper class for class instantiations and it also contains methods to work with schemas.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convertKeyValueDataStringToSchemaInfoSchema​(byte[] keyValueSchemaInfoDataJsonBytes)
      Convert the key/value schema info data json bytes to key/value schema info data bytes.
      java.lang.String convertKeyValueSchemaInfoDataToString​(org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> kvSchemaInfo)
      Convert the key/value schema data.
      org.apache.pulsar.client.api.Authentication createAuthentication​(java.lang.String authPluginClassName, java.lang.String authParamsString)  
      org.apache.pulsar.client.api.Authentication createAuthentication​(java.lang.String authPluginClassName, java.util.Map<java.lang.String,​java.lang.String> authParams)  
      org.apache.pulsar.common.schema.KeyValueEncodingType decodeKeyValueEncodingType​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Decode the kv encoding type from the schema info.
      org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> decodeKeyValueSchemaInfo​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Decode the key/value schema info to get key schema info and value schema info.
      <K,​V>
      org.apache.pulsar.common.schema.SchemaInfo
      encodeKeyValueSchemaInfo​(java.lang.String schemaName, org.apache.pulsar.client.api.Schema<K> keySchema, org.apache.pulsar.client.api.Schema<V> valueSchema, org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)
      Encode key & value into schema into a KeyValue schema.
      <K,​V>
      org.apache.pulsar.common.schema.SchemaInfo
      encodeKeyValueSchemaInfo​(org.apache.pulsar.client.api.Schema<K> keySchema, org.apache.pulsar.client.api.Schema<V> valueSchema, org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)
      Encode key & value into schema into a KeyValue schema.
      org.apache.pulsar.client.api.schema.GenericSchema<org.apache.pulsar.client.api.schema.GenericRecord> getGenericSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      org.apache.pulsar.client.api.Schema<?> getSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      java.lang.String jsonifyKeyValueSchemaInfo​(org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> kvSchemaInfo)
      Jsonify the key/value schema info.
      java.lang.String jsonifySchemaInfo​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Jsonify the schema info.
      java.lang.String jsonifySchemaInfoWithVersion​(org.apache.pulsar.common.schema.SchemaInfoWithVersion schemaInfoWithVersion)
      Jsonify the schema info with version.
      org.apache.pulsar.client.api.Authentication newAuthenticationTLS​(java.lang.String certFilePath, java.lang.String keyFilePath)  
      org.apache.pulsar.client.api.Authentication newAuthenticationToken​(java.lang.String token)  
      org.apache.pulsar.client.api.Authentication newAuthenticationToken​(java.util.function.Supplier<java.lang.String> supplier)  
      org.apache.pulsar.client.api.Schema<org.apache.pulsar.client.api.schema.GenericRecord> newAutoConsumeSchema()  
      org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema()  
      org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema​(org.apache.pulsar.client.api.Schema<?> schema)  
      org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceValidatedAvroSchema​(java.lang.Object schema)  
      <T> org.apache.pulsar.client.api.Schema<T> newAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)  
      org.apache.pulsar.client.api.Schema<java.lang.Boolean> newBooleanSchema()  
      org.apache.pulsar.client.api.Schema<java.nio.ByteBuffer> newByteBufferSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.Byte> newByteSchema()  
      org.apache.pulsar.client.api.Schema<byte[]> newBytesSchema()  
      org.apache.pulsar.client.api.ClientBuilder newClientBuilder()  
      org.apache.pulsar.client.api.Schema<java.util.Date> newDateSchema()  
      org.apache.pulsar.client.api.BatcherBuilder newDefaultBatcherBuilder()  
      org.apache.pulsar.client.api.MessagePayloadFactory newDefaultMessagePayloadFactory()  
      org.apache.pulsar.client.api.Schema<java.lang.Double> newDoubleSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.Float> newFloatSchema()  
      org.apache.pulsar.client.api.Schema<java.time.Instant> newInstantSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.Integer> newIntSchema()  
      <T> org.apache.pulsar.client.api.Schema<T> newJSONSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)  
      org.apache.pulsar.client.api.BatcherBuilder newKeyBasedBatcherBuilder()  
      org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<byte[],​byte[]>> newKeyValueBytesSchema()  
      <K,​V>
      org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<K,​V>>
      newKeyValueSchema​(java.lang.Class<K> key, java.lang.Class<V> value, org.apache.pulsar.common.schema.SchemaType type)  
      <K,​V>
      org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<K,​V>>
      newKeyValueSchema​(org.apache.pulsar.client.api.Schema<K> keySchema, org.apache.pulsar.client.api.Schema<V> valueSchema, org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)  
      org.apache.pulsar.client.api.Schema<java.time.LocalDate> newLocalDateSchema()  
      org.apache.pulsar.client.api.Schema<java.time.LocalDateTime> newLocalDateTimeSchema()  
      org.apache.pulsar.client.api.Schema<java.time.LocalTime> newLocalTimeSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.Long> newLongSchema()  
      org.apache.pulsar.client.api.MessageId newMessageId​(long ledgerId, long entryId, int partitionIndex)  
      org.apache.pulsar.client.api.MessageId newMessageIdFromByteArray​(byte[] data)  
      org.apache.pulsar.client.api.MessageId newMessageIdFromByteArrayWithTopic​(byte[] data, java.lang.String topicName)  
      <T extends com.google.protobuf.GeneratedMessageV3>
      org.apache.pulsar.client.api.Schema<T>
      newProtobufNativeSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)  
      <T extends com.google.protobuf.GeneratedMessageV3>
      org.apache.pulsar.client.api.Schema<T>
      newProtobufSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)  
      org.apache.pulsar.client.api.schema.RecordSchemaBuilder newRecordSchemaBuilder​(java.lang.String name)  
      <T> org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()  
      org.apache.pulsar.common.schema.SchemaInfo newSchemaInfoImpl​(java.lang.String name, byte[] schema, org.apache.pulsar.common.schema.SchemaType type, long timestamp, java.util.Map<java.lang.String,​java.lang.String> propertiesValue)  
      org.apache.pulsar.client.api.Schema<java.lang.Short> newShortSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema()  
      org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema​(java.nio.charset.Charset charset)  
      org.apache.pulsar.client.api.Schema<java.sql.Time> newTimeSchema()  
      org.apache.pulsar.client.api.Schema<java.sql.Timestamp> newTimestampSchema()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PulsarClientImplementationBindingImpl

        public PulsarClientImplementationBindingImpl()
    • Method Detail

      • newSchemaDefinitionBuilder

        public <T> org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()
        Specified by:
        newSchemaDefinitionBuilder in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newClientBuilder

        public org.apache.pulsar.client.api.ClientBuilder newClientBuilder()
        Specified by:
        newClientBuilder in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newMessageId

        public org.apache.pulsar.client.api.MessageId newMessageId​(long ledgerId,
                                                                   long entryId,
                                                                   int partitionIndex)
        Specified by:
        newMessageId in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newMessageIdFromByteArray

        public org.apache.pulsar.client.api.MessageId newMessageIdFromByteArray​(byte[] data)
                                                                         throws java.io.IOException
        Specified by:
        newMessageIdFromByteArray in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Throws:
        java.io.IOException
      • newMessageIdFromByteArrayWithTopic

        public org.apache.pulsar.client.api.MessageId newMessageIdFromByteArrayWithTopic​(byte[] data,
                                                                                         java.lang.String topicName)
                                                                                  throws java.io.IOException
        Specified by:
        newMessageIdFromByteArrayWithTopic in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Throws:
        java.io.IOException
      • newAuthenticationToken

        public org.apache.pulsar.client.api.Authentication newAuthenticationToken​(java.lang.String token)
        Specified by:
        newAuthenticationToken in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAuthenticationToken

        public org.apache.pulsar.client.api.Authentication newAuthenticationToken​(java.util.function.Supplier<java.lang.String> supplier)
        Specified by:
        newAuthenticationToken in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAuthenticationTLS

        public org.apache.pulsar.client.api.Authentication newAuthenticationTLS​(java.lang.String certFilePath,
                                                                                java.lang.String keyFilePath)
        Specified by:
        newAuthenticationTLS in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • createAuthentication

        public org.apache.pulsar.client.api.Authentication createAuthentication​(java.lang.String authPluginClassName,
                                                                                java.lang.String authParamsString)
                                                                         throws org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
        Specified by:
        createAuthentication in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Throws:
        org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
      • createAuthentication

        public org.apache.pulsar.client.api.Authentication createAuthentication​(java.lang.String authPluginClassName,
                                                                                java.util.Map<java.lang.String,​java.lang.String> authParams)
                                                                         throws org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
        Specified by:
        createAuthentication in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Throws:
        org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
      • newBytesSchema

        public org.apache.pulsar.client.api.Schema<byte[]> newBytesSchema()
        Specified by:
        newBytesSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newStringSchema

        public org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema()
        Specified by:
        newStringSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newStringSchema

        public org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema​(java.nio.charset.Charset charset)
        Specified by:
        newStringSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newByteSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Byte> newByteSchema()
        Specified by:
        newByteSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newShortSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Short> newShortSchema()
        Specified by:
        newShortSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newIntSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Integer> newIntSchema()
        Specified by:
        newIntSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newLongSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Long> newLongSchema()
        Specified by:
        newLongSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newBooleanSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Boolean> newBooleanSchema()
        Specified by:
        newBooleanSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newByteBufferSchema

        public org.apache.pulsar.client.api.Schema<java.nio.ByteBuffer> newByteBufferSchema()
        Specified by:
        newByteBufferSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newFloatSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Float> newFloatSchema()
        Specified by:
        newFloatSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newDoubleSchema

        public org.apache.pulsar.client.api.Schema<java.lang.Double> newDoubleSchema()
        Specified by:
        newDoubleSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newDateSchema

        public org.apache.pulsar.client.api.Schema<java.util.Date> newDateSchema()
        Specified by:
        newDateSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newTimeSchema

        public org.apache.pulsar.client.api.Schema<java.sql.Time> newTimeSchema()
        Specified by:
        newTimeSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newTimestampSchema

        public org.apache.pulsar.client.api.Schema<java.sql.Timestamp> newTimestampSchema()
        Specified by:
        newTimestampSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newInstantSchema

        public org.apache.pulsar.client.api.Schema<java.time.Instant> newInstantSchema()
        Specified by:
        newInstantSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newLocalDateSchema

        public org.apache.pulsar.client.api.Schema<java.time.LocalDate> newLocalDateSchema()
        Specified by:
        newLocalDateSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newLocalTimeSchema

        public org.apache.pulsar.client.api.Schema<java.time.LocalTime> newLocalTimeSchema()
        Specified by:
        newLocalTimeSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newLocalDateTimeSchema

        public org.apache.pulsar.client.api.Schema<java.time.LocalDateTime> newLocalDateTimeSchema()
        Specified by:
        newLocalDateTimeSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAvroSchema

        public <T> org.apache.pulsar.client.api.Schema<T> newAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        Specified by:
        newAvroSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newProtobufSchema

        public <T extends com.google.protobuf.GeneratedMessageV3> org.apache.pulsar.client.api.Schema<T> newProtobufSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        Specified by:
        newProtobufSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newProtobufNativeSchema

        public <T extends com.google.protobuf.GeneratedMessageV3> org.apache.pulsar.client.api.Schema<T> newProtobufNativeSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        Specified by:
        newProtobufNativeSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newJSONSchema

        public <T> org.apache.pulsar.client.api.Schema<T> newJSONSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        Specified by:
        newJSONSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAutoConsumeSchema

        public org.apache.pulsar.client.api.Schema<org.apache.pulsar.client.api.schema.GenericRecord> newAutoConsumeSchema()
        Specified by:
        newAutoConsumeSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAutoProduceSchema

        public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema()
        Specified by:
        newAutoProduceSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAutoProduceSchema

        public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema​(org.apache.pulsar.client.api.Schema<?> schema)
        Specified by:
        newAutoProduceSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newAutoProduceValidatedAvroSchema

        public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceValidatedAvroSchema​(java.lang.Object schema)
        Specified by:
        newAutoProduceValidatedAvroSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newKeyValueBytesSchema

        public org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<byte[],​byte[]>> newKeyValueBytesSchema()
        Specified by:
        newKeyValueBytesSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newKeyValueSchema

        public <K,​V> org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<K,​V>> newKeyValueSchema​(org.apache.pulsar.client.api.Schema<K> keySchema,
                                                                                                                                      org.apache.pulsar.client.api.Schema<V> valueSchema,
                                                                                                                                      org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)
        Specified by:
        newKeyValueSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newKeyValueSchema

        public <K,​V> org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<K,​V>> newKeyValueSchema​(java.lang.Class<K> key,
                                                                                                                                      java.lang.Class<V> value,
                                                                                                                                      org.apache.pulsar.common.schema.SchemaType type)
        Specified by:
        newKeyValueSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • getSchema

        public org.apache.pulsar.client.api.Schema<?> getSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Specified by:
        getSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • getGenericSchema

        public org.apache.pulsar.client.api.schema.GenericSchema<org.apache.pulsar.client.api.schema.GenericRecord> getGenericSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Specified by:
        getGenericSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newRecordSchemaBuilder

        public org.apache.pulsar.client.api.schema.RecordSchemaBuilder newRecordSchemaBuilder​(java.lang.String name)
        Specified by:
        newRecordSchemaBuilder in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • decodeKeyValueEncodingType

        public org.apache.pulsar.common.schema.KeyValueEncodingType decodeKeyValueEncodingType​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Decode the kv encoding type from the schema info.
        Specified by:
        decodeKeyValueEncodingType in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        schemaInfo - the schema info
        Returns:
        the kv encoding type
      • encodeKeyValueSchemaInfo

        public <K,​V> org.apache.pulsar.common.schema.SchemaInfo encodeKeyValueSchemaInfo​(org.apache.pulsar.client.api.Schema<K> keySchema,
                                                                                               org.apache.pulsar.client.api.Schema<V> valueSchema,
                                                                                               org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)
        Encode key & value into schema into a KeyValue schema.
        Specified by:
        encodeKeyValueSchemaInfo in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        keySchema - the key schema
        valueSchema - the value schema
        keyValueEncodingType - the encoding type to encode and decode key value pair
        Returns:
        the final schema info
      • encodeKeyValueSchemaInfo

        public <K,​V> org.apache.pulsar.common.schema.SchemaInfo encodeKeyValueSchemaInfo​(java.lang.String schemaName,
                                                                                               org.apache.pulsar.client.api.Schema<K> keySchema,
                                                                                               org.apache.pulsar.client.api.Schema<V> valueSchema,
                                                                                               org.apache.pulsar.common.schema.KeyValueEncodingType keyValueEncodingType)
        Encode key & value into schema into a KeyValue schema.
        Specified by:
        encodeKeyValueSchemaInfo in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        schemaName - the final schema name
        keySchema - the key schema
        valueSchema - the value schema
        keyValueEncodingType - the encoding type to encode and decode key value pair
        Returns:
        the final schema info
      • decodeKeyValueSchemaInfo

        public org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> decodeKeyValueSchemaInfo​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Decode the key/value schema info to get key schema info and value schema info.
        Specified by:
        decodeKeyValueSchemaInfo in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        schemaInfo - key/value schema info.
        Returns:
        the pair of key schema info and value schema info
      • jsonifySchemaInfo

        public java.lang.String jsonifySchemaInfo​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Jsonify the schema info.
        Specified by:
        jsonifySchemaInfo in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        schemaInfo - the schema info
        Returns:
        the jsonified schema info
      • jsonifySchemaInfoWithVersion

        public java.lang.String jsonifySchemaInfoWithVersion​(org.apache.pulsar.common.schema.SchemaInfoWithVersion schemaInfoWithVersion)
        Jsonify the schema info with version.
        Specified by:
        jsonifySchemaInfoWithVersion in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        schemaInfoWithVersion - the schema info with version
        Returns:
        the jsonified schema info with version
      • jsonifyKeyValueSchemaInfo

        public java.lang.String jsonifyKeyValueSchemaInfo​(org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> kvSchemaInfo)
        Jsonify the key/value schema info.
        Specified by:
        jsonifyKeyValueSchemaInfo in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        kvSchemaInfo - the key/value schema info
        Returns:
        the jsonified schema info
      • convertKeyValueSchemaInfoDataToString

        public java.lang.String convertKeyValueSchemaInfoDataToString​(org.apache.pulsar.common.schema.KeyValue<org.apache.pulsar.common.schema.SchemaInfo,​org.apache.pulsar.common.schema.SchemaInfo> kvSchemaInfo)
                                                               throws java.io.IOException
        Convert the key/value schema data.
        Specified by:
        convertKeyValueSchemaInfoDataToString in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        kvSchemaInfo - the key/value schema info
        Returns:
        the convert key/value schema data string
        Throws:
        java.io.IOException
      • convertKeyValueDataStringToSchemaInfoSchema

        public byte[] convertKeyValueDataStringToSchemaInfoSchema​(byte[] keyValueSchemaInfoDataJsonBytes)
                                                           throws java.io.IOException
        Convert the key/value schema info data json bytes to key/value schema info data bytes.
        Specified by:
        convertKeyValueDataStringToSchemaInfoSchema in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
        Parameters:
        keyValueSchemaInfoDataJsonBytes - the key/value schema info data json bytes
        Returns:
        the key/value schema info data bytes
        Throws:
        java.io.IOException
      • newDefaultBatcherBuilder

        public org.apache.pulsar.client.api.BatcherBuilder newDefaultBatcherBuilder()
        Specified by:
        newDefaultBatcherBuilder in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newKeyBasedBatcherBuilder

        public org.apache.pulsar.client.api.BatcherBuilder newKeyBasedBatcherBuilder()
        Specified by:
        newKeyBasedBatcherBuilder in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newDefaultMessagePayloadFactory

        public org.apache.pulsar.client.api.MessagePayloadFactory newDefaultMessagePayloadFactory()
        Specified by:
        newDefaultMessagePayloadFactory in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding
      • newSchemaInfoImpl

        public org.apache.pulsar.common.schema.SchemaInfo newSchemaInfoImpl​(java.lang.String name,
                                                                            byte[] schema,
                                                                            org.apache.pulsar.common.schema.SchemaType type,
                                                                            long timestamp,
                                                                            java.util.Map<java.lang.String,​java.lang.String> propertiesValue)
        Specified by:
        newSchemaInfoImpl in interface org.apache.pulsar.client.internal.PulsarClientImplementationBinding