public class PrimitiveInputFormat<OT> extends DelimitedInputFormat<OT>
CsvInputFormat is that it won't go through Tuple1.DelimitedInputFormat.AbstractConfigBuilder<T>, DelimitedInputFormat.ConfigBuilderFileInputFormat.FileBaseStatistics, FileInputFormat.InputSplitOpenThreadRECORD_DELIMITERDEFLATE_SUFFIX, enumerateNestedFiles, filePath, minSplitSize, numSplits, openTimeout, READ_WHOLE_SPLIT_FLAG, splitLength, splitStart, stream, unsplittable| Constructor and Description |
|---|
PrimitiveInputFormat(Path filePath,
Class<OT> primitiveClass) |
PrimitiveInputFormat(Path filePath,
String delimiter,
Class<OT> primitiveClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
open(FileInputSplit split) |
OT |
readRecord(OT reuse,
byte[] bytes,
int offset,
int numBytes) |
close, configure, configureDelimitedFormat, getBufferSize, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadGloablConfigParams, nextRecord, reachedEnd, readLine, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesacceptFile, configureFileFormat, createInputSplits, getFilePath, getFileStats, getInputSplitAssigner, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, toStringpublic void open(FileInputSplit split) throws IOException
open in interface InputFormat<OT,FileInputSplit>open in class DelimitedInputFormat<OT>IOExceptionpublic OT readRecord(OT reuse, byte[] bytes, int offset, int numBytes) throws IOException
readRecord in class DelimitedInputFormat<OT>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.