Class LocalTimeSchema
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<java.time.LocalTime>
-
- org.apache.pulsar.client.impl.schema.LocalTimeSchema
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.pulsar.client.api.Schema<java.time.LocalTime>
public class LocalTimeSchema extends AbstractSchema<java.time.LocalTime>
A schema for `java.time.LocalTime`.
-
-
Constructor Summary
Constructors Constructor Description LocalTimeSchema()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalTimedecode(byte[] bytes)java.time.LocalTimedecode(io.netty.buffer.ByteBuf byteBuf)Decode a byteBuf into an object using the schema definition and deserializer implementationbyte[]encode(java.time.LocalTime message)org.apache.pulsar.common.schema.SchemaInfogetSchemaInfo()static LocalTimeSchemaof()-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decode
-
-
-
-
Method Detail
-
of
public static LocalTimeSchema of()
-
encode
public byte[] encode(java.time.LocalTime message)
-
decode
public java.time.LocalTime decode(byte[] bytes)
-
decode
public java.time.LocalTime 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.LocalTime>- Parameters:
byteBuf- the byte buffer to decode- Returns:
- the deserialized object
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
-
-