public abstract class BinaryInputFormat<T>
extends eu.stratosphere.api.common.io.FileInputFormat<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BinaryInputFormat.AbstractConfigBuilder<T>
Abstract builder used to set parameters to the input format's configuration in a fluent way.
|
static class |
BinaryInputFormat.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 |
|---|
BinaryInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(eu.stratosphere.configuration.Configuration parameters) |
static BinaryInputFormat.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 BinaryInputFormat.ConfigBuilder |
configureBinaryFormat(eu.stratosphere.api.common.operators.GenericDataSource<?> 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()
Creates the block info.
|
eu.stratosphere.core.fs.FileInputSplit[] |
createInputSplits(int minNumSplits) |
protected eu.stratosphere.core.testing.io.BinaryInputFormat.SequentialStatistics |
createStatistics(List<eu.stratosphere.core.fs.FileStatus> files,
eu.stratosphere.api.common.io.FileInputFormat.FileBaseStatistics stats)
Fill in the statistics.
|
protected abstract void |
deserialize(T record,
eu.stratosphere.core.memory.DataInputView dataInput)
Deserializes the given record from the
DataInputView. |
long |
getBlockSize()
Returns the blockSize.
|
eu.stratosphere.core.testing.io.BinaryInputFormat.SequentialStatistics |
getStatistics(eu.stratosphere.api.common.io.statistics.BaseStatistics cachedStats) |
boolean |
nextRecord(T record) |
void |
open(eu.stratosphere.core.fs.FileInputSplit split) |
boolean |
reachedEnd() |
void |
setBlockSize(long blockSize)
Sets the blockSize to the specified value.
|
close, configureFileFormat, getFilePath, getFileStats, getInputSplitType, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, toStringpublic static final long NATIVE_BLOCK_SIZE
FileSystem.public void configure(eu.stratosphere.configuration.Configuration parameters)
public eu.stratosphere.core.fs.FileInputSplit[] createInputSplits(int minNumSplits)
throws IOException
createInputSplits in interface eu.stratosphere.api.common.io.InputFormat<T,eu.stratosphere.core.fs.FileInputSplit>createInputSplits in class eu.stratosphere.api.common.io.FileInputFormat<T>IOExceptionpublic long getBlockSize()
public eu.stratosphere.core.testing.io.BinaryInputFormat.SequentialStatistics getStatistics(eu.stratosphere.api.common.io.statistics.BaseStatistics cachedStats)
public boolean nextRecord(T record) throws IOException
IOExceptionpublic void open(eu.stratosphere.core.fs.FileInputSplit split)
throws IOException
open in interface eu.stratosphere.api.common.io.InputFormat<T,eu.stratosphere.core.fs.FileInputSplit>open in class eu.stratosphere.api.common.io.FileInputFormat<T>IOExceptionpublic boolean reachedEnd()
throws IOException
IOExceptionpublic void setBlockSize(long blockSize)
blockSize - the blockSize to setprotected BlockInfo createBlockInfo()
protected eu.stratosphere.core.testing.io.BinaryInputFormat.SequentialStatistics createStatistics(List<eu.stratosphere.core.fs.FileStatus> files, eu.stratosphere.api.common.io.FileInputFormat.FileBaseStatistics stats) throws IOException
files - The files that are associated with this block input format.stats - The pre-filled statistics.IOExceptionprotected abstract void deserialize(T record, eu.stratosphere.core.memory.DataInputView dataInput) throws IOException
DataInputView.IOExceptionpublic static BinaryInputFormat.ConfigBuilder configureBinaryFormat(eu.stratosphere.configuration.Configuration config)
public static BinaryInputFormat.ConfigBuilder configureBinaryFormat(eu.stratosphere.api.common.operators.GenericDataSource<?> target)
Copyright © 2014. All rights reserved.