Package org.apache.flink.formats.csv
Class CsvRowDataDeserializationSchema.Builder
java.lang.Object
org.apache.flink.formats.csv.CsvRowDataDeserializationSchema.Builder
- Enclosing class:
- CsvRowDataDeserializationSchema
A builder for creating a
CsvRowDataDeserializationSchema.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(org.apache.flink.table.types.logical.RowType rowType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo) Creates a CSV deserialization schema for the givenTypeInformationwith optional parameters.Builder(org.apache.flink.table.types.logical.RowType rowReadType, org.apache.flink.table.types.logical.RowType rowResultType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo) Creates a CSV deserialization schema for the givenTypeInformationwith optional parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuild()setAllowComments(boolean allowComments) setArrayElementDelimiter(String delimiter) setEscapeCharacter(char c) setFieldDelimiter(char delimiter) setIgnoreParseErrors(boolean ignoreParseErrors) setNullLiteral(String nullLiteral) setQuoteCharacter(char c)
-
Constructor Details
-
Builder
public Builder(org.apache.flink.table.types.logical.RowType rowReadType, org.apache.flink.table.types.logical.RowType rowResultType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo) Creates a CSV deserialization schema for the givenTypeInformationwith optional parameters.- Parameters:
rowReadType- TheRowTypeused for reading CSV rows.rowResultType- TheRowTypeof the produced results. It can be different from therowReadTypeif the underlying converter supports the discrepancy (for instance for filtering/projection pushdown).resultTypeInfo- The result type info.
-
Builder
public Builder(org.apache.flink.table.types.logical.RowType rowType, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo) Creates a CSV deserialization schema for the givenTypeInformationwith optional parameters.
-
-
Method Details
-
setFieldDelimiter
-
setAllowComments
-
setArrayElementDelimiter
-
disableQuoteCharacter
-
setQuoteCharacter
-
setEscapeCharacter
-
setNullLiteral
-
setIgnoreParseErrors
-
build
-