Class LocalDateTimeSchema
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<java.time.LocalDateTime>
-
- org.apache.pulsar.client.impl.schema.LocalDateTimeSchema
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.pulsar.client.api.Schema<java.time.LocalDateTime>
public class LocalDateTimeSchema extends AbstractSchema<java.time.LocalDateTime>
A schema for `java.time.LocalDateTime`.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Constructor Summary
Constructors Constructor Description LocalDateTimeSchema()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTimedecode(byte[] bytes)java.time.LocalDateTimedecode(io.netty.buffer.ByteBuf byteBuf)Decode a byteBuf into an object using the schema definition and deserializer implementationbyte[]encode(java.time.LocalDateTime message)org.apache.pulsar.common.schema.SchemaInfogetSchemaInfo()static LocalDateTimeSchemaof()-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decode
-
-
-
-
Field Detail
-
DELIMITER
public static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static LocalDateTimeSchema of()
-
encode
public byte[] encode(java.time.LocalDateTime message)
-
decode
public java.time.LocalDateTime decode(byte[] bytes)
-
decode
public java.time.LocalDateTime decode(io.netty.buffer.ByteBuf byteBuf)
Description copied from class:AbstractSchemaDecode 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.
- Specified by:
decodein classAbstractSchema<java.time.LocalDateTime>- Parameters:
byteBuf- the byte buffer to decode- Returns:
- the deserialized object
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
-
-