class GenericSerde[T >: Null] extends Serde[T] with Deserializer[T] with Serializer[T] with Serializable
Kafka Serde using Avro4s for serializing to/deserialising from case classes into Avro records, without integration with the Confluent schema registry.
The implicit schemaFor instance is used as the writer schema when deserializing, in case it needs to diverge from both writer schema used in serialize, and the desired schema in deserialize.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GenericSerde
- Serializable
- Serializable
- Serializer
- Deserializer
- Serde
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new GenericSerde(avroFormat: AvroFormat = BinaryFormat)(implicit arg0: SchemaFor[T], arg1: Encoder[T], arg2: Decoder[T])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
close(): Unit
- Definition Classes
- GenericSerde → Serializer → Deserializer → Serde → Closeable → AutoCloseable
-
def
configure(configs: Map[String, _], isKey: Boolean): Unit
- Definition Classes
- GenericSerde → Serializer → Deserializer → Serde
-
def
deserialize(topic: String, data: Array[Byte]): T
- Definition Classes
- GenericSerde → Deserializer
-
def
deserialize(arg0: String, arg1: Headers, arg2: Array[Byte]): T
- Definition Classes
- Deserializer
-
def
deserializer(): Deserializer[T]
- Definition Classes
- GenericSerde → Serde
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val schema: Schema
-
def
serialize(topic: String, data: T): Array[Byte]
- Definition Classes
- GenericSerde → Serializer
-
def
serialize(arg0: String, arg1: Headers, arg2: T): Array[Byte]
- Definition Classes
- Serializer
-
def
serializer(): Serializer[T]
- Definition Classes
- GenericSerde → Serde
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.