类 LocalDateSchema
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<java.time.LocalDate>
-
- org.apache.pulsar.client.impl.schema.LocalDateSchema
-
- 所有已实现的接口:
java.lang.Cloneable
,org.apache.pulsar.client.api.Schema<java.time.LocalDate>
public class LocalDateSchema extends AbstractSchema<java.time.LocalDate>
A schema for `java.time.LocalDate`.
-
-
构造器概要
构造器 构造器 说明 LocalDateSchema()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 java.time.LocalDate
decode(byte[] bytes)
java.time.LocalDate
decode(io.netty.buffer.ByteBuf byteBuf)
Decode a byteBuf into an object using the schema definition and deserializer implementationbyte[]
encode(java.time.LocalDate message)
org.apache.pulsar.common.schema.SchemaInfo
getSchemaInfo()
static LocalDateSchema
of()
-
从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decode
-
-
-
-
方法详细资料
-
of
public static LocalDateSchema of()
-
encode
public byte[] encode(java.time.LocalDate message)
-
decode
public java.time.LocalDate decode(byte[] bytes)
-
decode
public java.time.LocalDate decode(io.netty.buffer.ByteBuf byteBuf)
从类复制的说明:AbstractSchema
Decode a byteBuf into an object using the schema definition and deserializer implementationDo not modify reader/writer index of ByteBuf so, it can be reused to access correct data.
- 指定者:
decode
在类中AbstractSchema<java.time.LocalDate>
- 参数:
byteBuf
- the byte buffer to decode- 返回:
- the deserialized object
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
-
-