DeserializationSchema.@PublicEvolving @Deprecated public class AvroRowDeserializationSchema extends org.apache.flink.api.common.serialization.AbstractDeserializationSchema<org.apache.flink.types.Row>
Row.
Deserializes the byte[] messages into (nested) Flink rows. It converts Avro types
into types that are compatible with Flink's Table & SQL API.
Projects with Avro records containing logical date/time types need to add a JodaTime dependency.
Note: Changes in this class need to be kept in sync with the corresponding runtime class
AvroRowSerializationSchema and schema converter AvroSchemaConverter.
| 构造器和说明 |
|---|
AvroRowDeserializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
已过时。
Creates a Avro deserialization schema for the given specific record class.
|
AvroRowDeserializationSchema(String avroSchemaString)
已过时。
Creates a Avro deserialization schema for the given Avro schema string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.types.Row |
deserialize(byte[] message)
已过时。
|
boolean |
equals(Object o)
已过时。
|
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getProducedType()
已过时。
|
int |
hashCode()
已过时。
|
public AvroRowDeserializationSchema(Class<? extends org.apache.avro.specific.SpecificRecord> recordClazz)
recordClazz - Avro record class used to deserialize Avro's record to Flink's rowpublic AvroRowDeserializationSchema(String avroSchemaString)
avroSchemaString - Avro schema string to deserialize Avro's record to Flink's rowpublic org.apache.flink.types.Row deserialize(byte[] message)
throws IOException
deserialize 在接口中 org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>deserialize 在类中 org.apache.flink.api.common.serialization.AbstractDeserializationSchema<org.apache.flink.types.Row>IOExceptionpublic org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()
getProducedType 在接口中 org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>getProducedType 在类中 org.apache.flink.api.common.serialization.AbstractDeserializationSchema<org.apache.flink.types.Row>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.