Package org.apache.pulsar.client.impl
Class PulsarClientImplementationBindingImpl
- java.lang.Object
-
- org.apache.pulsar.client.impl.PulsarClientImplementationBindingImpl
-
- All Implemented Interfaces:
org.apache.pulsar.client.internal.PulsarClientImplementationBinding
public final class PulsarClientImplementationBindingImpl extends java.lang.Object implements org.apache.pulsar.client.internal.PulsarClientImplementationBindingHelper class for class instantiations and it also contains methods to work with schemas.
-
-
Constructor Summary
Constructors Constructor Description PulsarClientImplementationBindingImpl()
-
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.StringconvertKeyValueSchemaInfoDataToString(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.AuthenticationcreateAuthentication(java.lang.String authPluginClassName, java.lang.String authParamsString)org.apache.pulsar.client.api.AuthenticationcreateAuthentication(java.lang.String authPluginClassName, java.util.Map<java.lang.String,java.lang.String> authParams)org.apache.pulsar.common.schema.KeyValueEncodingTypedecodeKeyValueEncodingType(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.SchemaInfoencodeKeyValueSchemaInfo(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.SchemaInfoencodeKeyValueSchemaInfo(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.StringjsonifyKeyValueSchemaInfo(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.StringjsonifySchemaInfo(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)Jsonify the schema info.java.lang.StringjsonifySchemaInfoWithVersion(org.apache.pulsar.common.schema.SchemaInfoWithVersion schemaInfoWithVersion)Jsonify the schema info with version.org.apache.pulsar.client.api.AuthenticationnewAuthenticationTLS(java.lang.String certFilePath, java.lang.String keyFilePath)org.apache.pulsar.client.api.AuthenticationnewAuthenticationToken(java.lang.String token)org.apache.pulsar.client.api.AuthenticationnewAuthenticationToken(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.ClientBuildernewClientBuilder()org.apache.pulsar.client.api.Schema<java.util.Date>newDateSchema()org.apache.pulsar.client.api.BatcherBuildernewDefaultBatcherBuilder()org.apache.pulsar.client.api.MessagePayloadFactorynewDefaultMessagePayloadFactory()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.BatcherBuildernewKeyBasedBatcherBuilder()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.MessageIdnewMessageId(long ledgerId, long entryId, int partitionIndex)org.apache.pulsar.client.api.MessageIdnewMessageIdFromByteArray(byte[] data)org.apache.pulsar.client.api.MessageIdnewMessageIdFromByteArrayWithTopic(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.RecordSchemaBuildernewRecordSchemaBuilder(java.lang.String name)<T> org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>newSchemaDefinitionBuilder()org.apache.pulsar.common.schema.SchemaInfonewSchemaInfoImpl(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()
-
-
-
Method Detail
-
newSchemaDefinitionBuilder
public <T> org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()
- Specified by:
newSchemaDefinitionBuilderin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newClientBuilder
public org.apache.pulsar.client.api.ClientBuilder newClientBuilder()
- Specified by:
newClientBuilderin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newMessageId
public org.apache.pulsar.client.api.MessageId newMessageId(long ledgerId, long entryId, int partitionIndex)- Specified by:
newMessageIdin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newMessageIdFromByteArray
public org.apache.pulsar.client.api.MessageId newMessageIdFromByteArray(byte[] data) throws java.io.IOException- Specified by:
newMessageIdFromByteArrayin interfaceorg.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:
newMessageIdFromByteArrayWithTopicin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding- Throws:
java.io.IOException
-
newAuthenticationToken
public org.apache.pulsar.client.api.Authentication newAuthenticationToken(java.lang.String token)
- Specified by:
newAuthenticationTokenin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAuthenticationToken
public org.apache.pulsar.client.api.Authentication newAuthenticationToken(java.util.function.Supplier<java.lang.String> supplier)
- Specified by:
newAuthenticationTokenin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAuthenticationTLS
public org.apache.pulsar.client.api.Authentication newAuthenticationTLS(java.lang.String certFilePath, java.lang.String keyFilePath)- Specified by:
newAuthenticationTLSin interfaceorg.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:
createAuthenticationin interfaceorg.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:
createAuthenticationin interfaceorg.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:
newBytesSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newStringSchema
public org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema()
- Specified by:
newStringSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newStringSchema
public org.apache.pulsar.client.api.Schema<java.lang.String> newStringSchema(java.nio.charset.Charset charset)
- Specified by:
newStringSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newByteSchema
public org.apache.pulsar.client.api.Schema<java.lang.Byte> newByteSchema()
- Specified by:
newByteSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newShortSchema
public org.apache.pulsar.client.api.Schema<java.lang.Short> newShortSchema()
- Specified by:
newShortSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newIntSchema
public org.apache.pulsar.client.api.Schema<java.lang.Integer> newIntSchema()
- Specified by:
newIntSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newLongSchema
public org.apache.pulsar.client.api.Schema<java.lang.Long> newLongSchema()
- Specified by:
newLongSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newBooleanSchema
public org.apache.pulsar.client.api.Schema<java.lang.Boolean> newBooleanSchema()
- Specified by:
newBooleanSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newByteBufferSchema
public org.apache.pulsar.client.api.Schema<java.nio.ByteBuffer> newByteBufferSchema()
- Specified by:
newByteBufferSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newFloatSchema
public org.apache.pulsar.client.api.Schema<java.lang.Float> newFloatSchema()
- Specified by:
newFloatSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newDoubleSchema
public org.apache.pulsar.client.api.Schema<java.lang.Double> newDoubleSchema()
- Specified by:
newDoubleSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newDateSchema
public org.apache.pulsar.client.api.Schema<java.util.Date> newDateSchema()
- Specified by:
newDateSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newTimeSchema
public org.apache.pulsar.client.api.Schema<java.sql.Time> newTimeSchema()
- Specified by:
newTimeSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newTimestampSchema
public org.apache.pulsar.client.api.Schema<java.sql.Timestamp> newTimestampSchema()
- Specified by:
newTimestampSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newInstantSchema
public org.apache.pulsar.client.api.Schema<java.time.Instant> newInstantSchema()
- Specified by:
newInstantSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newLocalDateSchema
public org.apache.pulsar.client.api.Schema<java.time.LocalDate> newLocalDateSchema()
- Specified by:
newLocalDateSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newLocalTimeSchema
public org.apache.pulsar.client.api.Schema<java.time.LocalTime> newLocalTimeSchema()
- Specified by:
newLocalTimeSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newLocalDateTimeSchema
public org.apache.pulsar.client.api.Schema<java.time.LocalDateTime> newLocalDateTimeSchema()
- Specified by:
newLocalDateTimeSchemain interfaceorg.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:
newAvroSchemain interfaceorg.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:
newProtobufSchemain interfaceorg.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:
newProtobufNativeSchemain interfaceorg.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:
newJSONSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAutoConsumeSchema
public org.apache.pulsar.client.api.Schema<org.apache.pulsar.client.api.schema.GenericRecord> newAutoConsumeSchema()
- Specified by:
newAutoConsumeSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAutoProduceSchema
public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema()
- Specified by:
newAutoProduceSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAutoProduceSchema
public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceSchema(org.apache.pulsar.client.api.Schema<?> schema)
- Specified by:
newAutoProduceSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newAutoProduceValidatedAvroSchema
public org.apache.pulsar.client.api.Schema<byte[]> newAutoProduceValidatedAvroSchema(java.lang.Object schema)
- Specified by:
newAutoProduceValidatedAvroSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newKeyValueBytesSchema
public org.apache.pulsar.client.api.Schema<org.apache.pulsar.common.schema.KeyValue<byte[],byte[]>> newKeyValueBytesSchema()
- Specified by:
newKeyValueBytesSchemain interfaceorg.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:
newKeyValueSchemain interfaceorg.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:
newKeyValueSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
getSchema
public org.apache.pulsar.client.api.Schema<?> getSchema(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
- Specified by:
getSchemain interfaceorg.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:
getGenericSchemain interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newRecordSchemaBuilder
public org.apache.pulsar.client.api.schema.RecordSchemaBuilder newRecordSchemaBuilder(java.lang.String name)
- Specified by:
newRecordSchemaBuilderin interfaceorg.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:
decodeKeyValueEncodingTypein interfaceorg.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:
encodeKeyValueSchemaInfoin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding- Parameters:
keySchema- the key schemavalueSchema- the value schemakeyValueEncodingType- 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:
encodeKeyValueSchemaInfoin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding- Parameters:
schemaName- the final schema namekeySchema- the key schemavalueSchema- the value schemakeyValueEncodingType- 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:
decodeKeyValueSchemaInfoin interfaceorg.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:
jsonifySchemaInfoin interfaceorg.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:
jsonifySchemaInfoWithVersionin interfaceorg.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:
jsonifyKeyValueSchemaInfoin interfaceorg.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.IOExceptionConvert the key/value schema data.- Specified by:
convertKeyValueSchemaInfoDataToStringin interfaceorg.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.IOExceptionConvert the key/value schema info data json bytes to key/value schema info data bytes.- Specified by:
convertKeyValueDataStringToSchemaInfoSchemain interfaceorg.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:
newDefaultBatcherBuilderin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newKeyBasedBatcherBuilder
public org.apache.pulsar.client.api.BatcherBuilder newKeyBasedBatcherBuilder()
- Specified by:
newKeyBasedBatcherBuilderin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
newDefaultMessagePayloadFactory
public org.apache.pulsar.client.api.MessagePayloadFactory newDefaultMessagePayloadFactory()
- Specified by:
newDefaultMessagePayloadFactoryin interfaceorg.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:
newSchemaInfoImplin interfaceorg.apache.pulsar.client.internal.PulsarClientImplementationBinding
-
-