Package com.hazelcast.jet.pulsar
Class PulsarSchema<E>
java.lang.Object
com.hazelcast.jet.pulsar.PulsarSchema<E>
Helper class that holds context info about Pulsar's Schema, without using Pulsar API directly.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic PulsarSchema<ByteBuffer>Returns the equivalent ofSchema.BYTEBUFFER.static PulsarSchema<byte[]>bytes()Returns the equivalent ofSchema.BYTES.static PulsarSchema<Double>doubles()Returns the equivalent ofSchema.DOUBLE.static PulsarSchema<Float>floats()Returns the equivalent ofSchema.FLOAT.static PulsarSchema<Short>int16()Returns the equivalent ofSchema.INT16.static PulsarSchema<Integer>int32()Returns the equivalent ofSchema.INT32.static PulsarSchema<Long>int64()Returns the equivalent ofSchema.INT64.static PulsarSchema<Byte>int8()Returns the equivalent ofSchema.INT8.static <T> PulsarSchema<T>Returns the equivalent ofSchema.JSON(Class).static PulsarSchema<String>string()Returns the equivalent ofSchema.STRING.
-
Method Details
-
bytes
Returns the equivalent ofSchema.BYTES. -
string
Returns the equivalent ofSchema.STRING. -
doubles
Returns the equivalent ofSchema.DOUBLE. -
floats
Returns the equivalent ofSchema.FLOAT. -
int8
Returns the equivalent ofSchema.INT8. -
int16
Returns the equivalent ofSchema.INT16. -
int32
Returns the equivalent ofSchema.INT32. -
int64
Returns the equivalent ofSchema.INT64. -
byteBuffer
Returns the equivalent ofSchema.BYTEBUFFER. -
json
Returns the equivalent ofSchema.JSON(Class).
-