Package org.apache.flink.formats.raw
Class RawFormatDeserializationSchema
- java.lang.Object
-
- org.apache.flink.formats.raw.RawFormatDeserializationSchema
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>,org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>
@Internal public class RawFormatDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>
Deserialization schema from raw (byte based) value to Flink Table/SQL internal data structureRowData.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RawFormatDeserializationSchema(org.apache.flink.table.types.logical.LogicalType deserializedType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo, String charsetName, boolean isBigEndian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.table.data.RowDatadeserialize(byte[] message)booleanequals(Object o)org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData>getProducedType()inthashCode()booleanisEndOfStream(org.apache.flink.table.data.RowData nextElement)voidopen(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
-
-
-
Constructor Detail
-
RawFormatDeserializationSchema
public RawFormatDeserializationSchema(org.apache.flink.table.types.logical.LogicalType deserializedType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo, String charsetName, boolean isBigEndian)
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) throws Exception- Specified by:
openin interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>- Throws:
Exception
-
deserialize
public org.apache.flink.table.data.RowData deserialize(byte[] message) throws IOException- Specified by:
deserializein interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>- Throws:
IOException
-
isEndOfStream
public boolean isEndOfStream(org.apache.flink.table.data.RowData nextElement)
- Specified by:
isEndOfStreamin interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>
-
-