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