@PublicEvolving public class PrimitiveInputFormat<OT> extends DelimitedInputFormat<OT>
CsvInputFormat is that it won't go through Tuple1.FileInputFormat.FileBaseStatistics, FileInputFormat.InputSplitOpenThreadRECORD_DELIMITERcurrentSplit, ENUMERATE_NESTED_FILES_FLAG, enumerateNestedFiles, filePath, INFLATER_INPUT_STREAM_FACTORIES, 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, getBufferSize, getCharset, getCurrentState, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadConfigParameters, loadGlobalConfigParams, nextRecord, reachedEnd, readLine, reopen, setBufferSize, setCharset, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesacceptFile, createInputSplits, decorateInputStream, extractFileExtension, getFilePath, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNestedFileEnumeration, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, testForUnsplittable, toStringcloseInputFormat, getRuntimeContext, openInputFormat, setRuntimeContextpublic 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 © 2014–2017 The Apache Software Foundation. All rights reserved.