public class TextInputFormat extends DelimitedInputFormat<String>
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 |
|---|
TextInputFormat(Path filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration parameters) |
String |
getCharsetName() |
String |
readRecord(String reusable,
byte[] bytes,
int offset,
int numBytes) |
void |
setCharsetName(String charsetName) |
String |
toString() |
close, configureDelimitedFormat, getBufferSize, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadGloablConfigParams, nextRecord, open, reachedEnd, readLine, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesacceptFile, configureFileFormat, createInputSplits, getFilePath, getFileStats, getInputSplitAssigner, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeoutpublic TextInputFormat(Path filePath)
public String getCharsetName()
public void setCharsetName(String charsetName)
public void configure(Configuration parameters)
configure in interface InputFormat<String,FileInputSplit>configure in class DelimitedInputFormat<String>public String readRecord(String reusable, byte[] bytes, int offset, int numBytes) throws IOException
readRecord in class DelimitedInputFormat<String>IOExceptionpublic String toString()
toString in class FileInputFormat<String>Copyright © 2015 The Apache Software Foundation. All rights reserved.