public class AvroInputFormat<E> extends eu.stratosphere.api.common.io.FileInputFormat<E> implements ResultTypeQueryable<E>
eu.stratosphere.api.common.io.FileInputFormat.AbstractConfigBuilder<T>, eu.stratosphere.api.common.io.FileInputFormat.ConfigBuilder, eu.stratosphere.api.common.io.FileInputFormat.FileBaseStatistics, eu.stratosphere.api.common.io.FileInputFormat.InputSplitOpenThread| Constructor and Description |
|---|
AvroInputFormat(eu.stratosphere.core.fs.Path filePath,
Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
TypeInformation<E> |
getProducedType() |
E |
nextRecord(E reuseValue) |
void |
open(eu.stratosphere.core.fs.FileInputSplit split) |
boolean |
reachedEnd() |
void |
setReuseAvroValue(boolean reuseAvroValue)
Sets the flag whether to reuse the Avro value instance for all records.
|
acceptFile, close, configure, configureFileFormat, createInputSplits, getFilePath, getFileStats, getInputSplitType, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, getStatistics, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, toStringpublic void setReuseAvroValue(boolean reuseAvroValue)
reuseAvroValue - True, if the input format should reuse the Avro value instance, false otherwise.public TypeInformation<E> getProducedType()
getProducedType in interface ResultTypeQueryable<E>public void open(eu.stratosphere.core.fs.FileInputSplit split)
throws IOException
open in interface eu.stratosphere.api.common.io.InputFormat<E,eu.stratosphere.core.fs.FileInputSplit>open in class eu.stratosphere.api.common.io.FileInputFormat<E>IOExceptionpublic boolean reachedEnd()
throws IOException
reachedEnd in interface eu.stratosphere.api.common.io.InputFormat<E,eu.stratosphere.core.fs.FileInputSplit>IOExceptionpublic E nextRecord(E reuseValue) throws IOException
nextRecord in interface eu.stratosphere.api.common.io.InputFormat<E,eu.stratosphere.core.fs.FileInputSplit>IOExceptionCopyright © 2013–2014. All rights reserved.