Package io.quarkus.pulsar.schema
Class ObjectMapperSchema<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<T>
io.quarkus.pulsar.schema.ObjectMapperSchema<T>
- All Implemented Interfaces:
Cloneable,org.apache.pulsar.client.api.Schema<T>
public class ObjectMapperSchema<T>
extends org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
Field Summary
Fields inherited from interface org.apache.pulsar.client.api.Schema
BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP -
Constructor Summary
ConstructorsConstructorDescriptionObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper) ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull) ObjectMapperSchema(com.fasterxml.jackson.databind.JavaType javaType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull) ObjectMapperSchema(Class<T> type) ObjectMapperSchema(Class<T> type, boolean nullAsNull) ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper) ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull) -
Method Summary
Modifier and TypeMethodDescriptiondecode(io.netty.buffer.ByteBuf byteBuf) byte[]org.apache.pulsar.common.schema.SchemaInfostatic <T> ObjectMapperSchema<T> Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.Schema
configureSchemaInfo, decode, decode, decode, decode, getNativeSchema, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validate
-
Constructor Details
-
ObjectMapperSchema
-
ObjectMapperSchema
-
ObjectMapperSchema
-
ObjectMapperSchema
-
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull) -
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.databind.JavaType javaType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)
-
-
Method Details
-
of
-
decode
- Specified by:
decodein classorg.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
encode
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
-