public abstract class BinaryOutputFormat<T>
extends eu.stratosphere.api.common.io.FileOutputFormat<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BinaryOutputFormat.AbstractConfigBuilder<T>
Abstract builder used to set parameters to the input format's configuration in a fluent way.
|
static class |
BinaryOutputFormat.ConfigBuilder
A builder used to set parameters to the input format's configuration in a fluent way.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
NATIVE_BLOCK_SIZE
Use block size from
FileSystem. |
| Constructor and Description |
|---|
BinaryOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
complementBlockInfo(BlockInfo blockInfo)
Hook for adding additional information to the
BlockInfo. |
void |
configure(eu.stratosphere.configuration.Configuration parameters) |
static BinaryOutputFormat.ConfigBuilder |
configureBinaryFormat(eu.stratosphere.configuration.Configuration config)
Creates a configuration builder that can be used to set the input format's parameters to the config in a fluent
fashion.
|
static BinaryOutputFormat.ConfigBuilder |
configureBinaryFormat(eu.stratosphere.api.common.operators.GenericDataSink target)
Creates a configuration builder that can be used to set the input format's parameters to the config in a fluent
fashion.
|
protected BlockInfo |
createBlockInfo()
Hook for creating a
BlockInfo with additional information. |
long |
getBlockSize()
Returns the blockSize.
|
void |
open(int taskNumber) |
protected abstract void |
serialize(T record,
eu.stratosphere.core.memory.DataOutputView dataOutput)
Serializes the given record to the
DataOutputView. |
void |
setBlockSize(long blockSize)
Sets the blockSize to the specified value.
|
void |
writeRecord(T record) |
public static final long NATIVE_BLOCK_SIZE
FileSystem.public void close()
throws IOException
close in interface eu.stratosphere.api.common.io.OutputFormat<T>close in class eu.stratosphere.api.common.io.FileOutputFormat<T>IOExceptionpublic void configure(eu.stratosphere.configuration.Configuration parameters)
public long getBlockSize()
public void open(int taskNumber)
throws IOException
open in interface eu.stratosphere.api.common.io.OutputFormat<T>open in class eu.stratosphere.api.common.io.FileOutputFormat<T>IOExceptionpublic void setBlockSize(long blockSize)
blockSize - the blockSize to setpublic void writeRecord(T record) throws IOException
IOExceptionprotected void complementBlockInfo(BlockInfo blockInfo) throws IOException
BlockInfo.IOExceptionprotected BlockInfo createBlockInfo()
BlockInfo with additional information.protected abstract void serialize(T record, eu.stratosphere.core.memory.DataOutputView dataOutput) throws IOException
DataOutputView.IOExceptionpublic static BinaryOutputFormat.ConfigBuilder configureBinaryFormat(eu.stratosphere.configuration.Configuration config)
public static BinaryOutputFormat.ConfigBuilder configureBinaryFormat(eu.stratosphere.api.common.operators.GenericDataSink target)
Copyright © 2014. All rights reserved.