public class TextInputFormat extends DelimitedInputFormat<String>
DelimitedInputFormat.AbstractConfigBuilder<T>, DelimitedInputFormat.ConfigBuilder
FileInputFormat.FileBaseStatistics, FileInputFormat.InputSplitOpenThread
RECORD_DELIMITER
DEFLATE_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, setNumLineSamples
acceptFile, configureFileFormat, createInputSplits, getFilePath, getFileStats, getInputSplitAssigner, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, testForUnsplittable
public 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>
IOException
public String toString()
toString
in class FileInputFormat<String>
Copyright © 2015 The Apache Software Foundation. All rights reserved.