@PublicEvolving public class TextInputFormat extends DelimitedInputFormat<String>
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 |
|---|
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, getBufferSize, getCharset, getCurrentState, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadConfigParameters, loadGlobalConfigParams, nextRecord, open, 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, testForUnsplittablecloseInputFormat, getRuntimeContext, openInputFormat, setRuntimeContextpublic 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 © 2014–2017 The Apache Software Foundation. All rights reserved.