T - type parameterpublic class TypeSerializerOutputFormat<T> extends BinaryOutputFormat<T> implements InputTypeConfigurable
BinaryOutputFormat.BlockBasedOutputFileOutputFormat.AbstractConfigBuilder<T>, FileOutputFormat.ConfigBuilder, FileOutputFormat.OutputDirectoryModeBLOCK_SIZE_PARAMETER_KEY, NATIVE_BLOCK_SIZEFILE_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)
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, writeRecordconfigureFileFormat, getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnErrorprotected void serialize(T record, DataOutputView dataOutput) throws IOException
serialize in class BinaryOutputFormat<T>IOExceptionpublic void setSerializer(TypeSerializer<T> serializer)
public void setInputType(TypeInformation<?> type)
InputTypeConfigurableOutputFormat 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 InputTypeConfigurabletype - The data type of the input.Copyright © 2015 The Apache Software Foundation. All rights reserved.