Package org.apache.flink.formats.csv
Class CsvRowDeserializationSchema
- java.lang.Object
-
- org.apache.flink.formats.csv.CsvRowDeserializationSchema
-
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
,org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
@Internal public final class CsvRowDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
Deserialization schema from CSV to Flink types.Deserializes a
byte[]
message as aJsonNode
and converts it toRow
.Failure during deserialization are forwarded as wrapped
IOException
s.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CsvRowDeserializationSchema.Builder
A builder for creating aCsvRowDeserializationSchema
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
boolean
isEndOfStream(org.apache.flink.types.Row nextElement)
void
open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
-
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) throws Exception
- Specified by:
open
in interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
- Throws:
Exception
-
deserialize
public org.apache.flink.types.Row deserialize(byte[] message) throws IOException
- Specified by:
deserialize
in interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
- Throws:
IOException
-
isEndOfStream
public boolean isEndOfStream(org.apache.flink.types.Row nextElement)
- Specified by:
isEndOfStream
in interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()
- Specified by:
getProducedType
in interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
-
-