T - type of record it producespublic class AvroDeserializationSchema<T> extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] message) |
static AvroDeserializationSchema<org.apache.avro.generic.GenericRecord> |
forGeneric(org.apache.avro.Schema schema)
Creates
AvroDeserializationSchema that produces GenericRecord using provided schema. |
static <T extends org.apache.avro.specific.SpecificRecord> |
forSpecific(Class<T> tClass)
Creates
AvroDeserializationSchema that produces classes that were generated from avro schema. |
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType() |
boolean |
isEndOfStream(T nextElement) |
public static AvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema)
AvroDeserializationSchema that produces GenericRecord using provided schema.schema - schema of produced recordsGenericRecordpublic static <T extends org.apache.avro.specific.SpecificRecord> AvroDeserializationSchema<T> forSpecific(Class<T> tClass)
AvroDeserializationSchema that produces classes that were generated from avro schema.tClass - class of record to be producedpublic T deserialize(byte[] message) throws IOException
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<T>IOExceptionpublic boolean isEndOfStream(T nextElement)
isEndOfStream in interface org.apache.flink.api.common.serialization.DeserializationSchema<T>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.