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 <T> PulsarSchema<T>Returns the equivalent ofSchema.AVRO(Class).static PulsarSchema<Boolean>bool()Returns the equivalent ofSchema.BOOL.static PulsarSchema<ByteBuffer>Returns the equivalent ofSchema.BYTEBUFFER.static PulsarSchema<byte[]>bytes()Returns the equivalent ofSchema.BYTES.static PulsarSchema<Date>date()Returns the equivalent ofSchema.DATE.static PulsarSchema<Float>float32()Returns the equivalent ofSchema.FLOAT.static PulsarSchema<Double>float64()Returns the equivalent ofSchema.DOUBLE.static PulsarSchema<Instant>instant()Returns the equivalent ofSchema.INSTANT.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<LocalDate>Returns the equivalent ofSchema.LOCAL_DATE.static PulsarSchema<LocalDateTime>Returns the equivalent ofSchema.LOCAL_DATE_TIME.static PulsarSchema<LocalTime>Returns the equivalent ofSchema.LOCAL_TIME.static PulsarSchema<String>string()Returns the equivalent ofSchema.STRING.static PulsarSchema<Time>time()Returns the equivalent ofSchema.TIME.static PulsarSchema<Timestamp>Returns the equivalent ofSchema.TIMESTAMP.
-
Method Details
-
supplierV4
-
bytes
Returns the equivalent ofSchema.BYTES. -
string
Returns the equivalent ofSchema.STRING. -
float64
Returns the equivalent ofSchema.DOUBLE. -
float32
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. -
bool
Returns the equivalent ofSchema.BOOL. -
date
Returns the equivalent ofSchema.DATE. -
time
Returns the equivalent ofSchema.TIME. -
timestamp
Returns the equivalent ofSchema.TIMESTAMP. -
instant
Returns the equivalent ofSchema.INSTANT. -
localDate
Returns the equivalent ofSchema.LOCAL_DATE. -
localTime
Returns the equivalent ofSchema.LOCAL_TIME. -
localDateTime
Returns the equivalent ofSchema.LOCAL_DATE_TIME. -
json
Returns the equivalent ofSchema.JSON(Class). -
avro
Returns the equivalent ofSchema.AVRO(Class).
-