T - type of record it producespublic class AvroDeserializationSchema<T> extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<T>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
deserialize(byte[] message) |
boolean |
equals(Object o) |
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() |
int |
hashCode() |
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(@Nullable byte[] message) throws IOException
deserialize 在接口中 org.apache.flink.api.common.serialization.DeserializationSchema<T>IOExceptionpublic boolean isEndOfStream(T nextElement)
isEndOfStream 在接口中 org.apache.flink.api.common.serialization.DeserializationSchema<T>public org.apache.flink.api.common.typeinfo.TypeInformation<T> getProducedType()
getProducedType 在接口中 org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.