protected abstract static class CsvOutputFormat.AbstractConfigBuilder<T>
extends org.apache.flink.api.common.io.FileOutputFormat.AbstractConfigBuilder<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfigBuilder(org.apache.flink.configuration.Configuration config)
Creates a new builder for the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
T |
field(Class<? extends org.apache.flink.types.Value> type,
int recordPosition)
Adds a field of the record to be serialized to the output.
|
T |
fieldDelimiter(char delimiter)
Sets the delimiter that delimits the individual fields in the records
textual output representation.
|
T |
lenient(boolean lenient)
Sets the leniency for the serializer.
|
T |
recordDelimiter(char delimiter)
Sets the delimiter to be a single character, namely the given one.
|
T |
recordDelimiter(String delimiter)
Sets the delimiter to be the given string.
|
T |
recordDelimiter(String delimiter,
String charsetName)
Sets the delimiter to be the given string.
|
protected AbstractConfigBuilder(org.apache.flink.configuration.Configuration config)
config - The configuration into which the parameters will be
written.public T recordDelimiter(char delimiter)
0 to
127.delimiter - The delimiter character.public T recordDelimiter(String delimiter)
delimiter - The delimiter string.public T recordDelimiter(String delimiter, String charsetName)
delimiter - The delimiter string.charsetName - The name of the encoding character set.public T fieldDelimiter(char delimiter)
delimiter - The character to be used as a field delimiter.public T field(Class<? extends org.apache.flink.types.Value> type, int recordPosition)
Object.toString() method will be
invoked to create a textual representation.type - The type of the field.recordPosition - The position in the record.public T lenient(boolean lenient)
lenient - True, if the serializer should be lenient, false
otherwise.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.