Package org.apache.flink.formats.csv
Class CsvRowDataSerializationSchema.Builder
- java.lang.Object
-
- org.apache.flink.formats.csv.CsvRowDataSerializationSchema.Builder
-
- Enclosing class:
- CsvRowDataSerializationSchema
@PublicEvolving public static class CsvRowDataSerializationSchema.Builder extends Object
A builder for creating aCsvRowDataSerializationSchema
.
-
-
Constructor Summary
Constructors Constructor Description Builder(RowType rowType)
Creates aCsvRowDataSerializationSchema
expecting the givenRowType
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsvRowDataSerializationSchema
build()
CsvRowDataSerializationSchema.Builder
disableQuoteCharacter()
CsvRowDataSerializationSchema.Builder
setArrayElementDelimiter(String delimiter)
CsvRowDataSerializationSchema.Builder
setEscapeCharacter(char c)
CsvRowDataSerializationSchema.Builder
setFieldDelimiter(char c)
CsvRowDataSerializationSchema.Builder
setNullLiteral(String s)
CsvRowDataSerializationSchema.Builder
setQuoteCharacter(char c)
void
setWriteBigDecimalInScientificNotation(boolean isScientificNotation)
-
-
-
Constructor Detail
-
Builder
public Builder(RowType rowType)
Creates aCsvRowDataSerializationSchema
expecting the givenRowType
.- Parameters:
rowType
- logical row type used to create schema.
-
-
Method Detail
-
setFieldDelimiter
public CsvRowDataSerializationSchema.Builder setFieldDelimiter(char c)
-
setArrayElementDelimiter
public CsvRowDataSerializationSchema.Builder setArrayElementDelimiter(String delimiter)
-
disableQuoteCharacter
public CsvRowDataSerializationSchema.Builder disableQuoteCharacter()
-
setQuoteCharacter
public CsvRowDataSerializationSchema.Builder setQuoteCharacter(char c)
-
setEscapeCharacter
public CsvRowDataSerializationSchema.Builder setEscapeCharacter(char c)
-
setNullLiteral
public CsvRowDataSerializationSchema.Builder setNullLiteral(String s)
-
setWriteBigDecimalInScientificNotation
public void setWriteBigDecimalInScientificNotation(boolean isScientificNotation)
-
build
public CsvRowDataSerializationSchema build()
-
-