T
- type parameter@PublicEvolving public class TypeSerializerOutputFormat<T> extends BinaryOutputFormat<T> implements InputTypeConfigurable
BinaryOutputFormat.BlockBasedOutput
FileOutputFormat.OutputDirectoryMode
BLOCK_SIZE_PARAMETER_KEY, NATIVE_BLOCK_SIZE
FILE_PARAMETER_KEY, outputFilePath, stream
Constructor and Description |
---|
TypeSerializerOutputFormat() |
Modifier and Type | Method and Description |
---|---|
protected void |
serialize(T record,
DataOutputView dataOutput) |
void |
setInputType(TypeInformation<?> type,
ExecutionConfig executionConfig)
Method that is called on an
OutputFormat when it is passed to
the DataSet's output method. |
void |
setSerializer(TypeSerializer<T> serializer) |
close, complementBlockInfo, configure, createBlockInfo, open, writeRecord
getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnError
getRuntimeContext, setRuntimeContext
protected void serialize(T record, DataOutputView dataOutput) throws IOException
serialize
in class BinaryOutputFormat<T>
IOException
public void setSerializer(TypeSerializer<T> serializer)
public void setInputType(TypeInformation<?> type, ExecutionConfig executionConfig)
InputTypeConfigurable
OutputFormat
when it is passed to
the DataSet's output method. May be used to configures the output format based on the data type.setInputType
in interface InputTypeConfigurable
type
- The data type of the input.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.