public class TextValueInputFormat extends DelimitedInputFormat<StringValue>
DelimitedInputFormat.AbstractConfigBuilder<T>, DelimitedInputFormat.ConfigBuilder
FileInputFormat.FileBaseStatistics, FileInputFormat.InputSplitOpenThread
RECORD_DELIMITER
currentSplit, ENUMERATE_NESTED_FILES_FLAG, enumerateNestedFiles, filePath, INFLATER_INPUT_STREAM_FACTORIES, minSplitSize, numSplits, openTimeout, READ_WHOLE_SPLIT_FLAG, splitLength, splitStart, stream, unsplittable
Constructor and Description |
---|
TextValueInputFormat(Path filePath) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration parameters) |
String |
getCharsetName() |
boolean |
isSkipInvalidLines() |
StringValue |
readRecord(StringValue reuse,
byte[] bytes,
int offset,
int numBytes) |
void |
setCharsetName(String charsetName) |
void |
setSkipInvalidLines(boolean skipInvalidLines) |
String |
toString() |
close, configureDelimitedFormat, getBufferSize, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadGloablConfigParams, nextRecord, open, reachedEnd, readLine, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamples
acceptFile, configureFileFormat, createInputSplits, decorateInputStream, extractFileExtension, getFilePath, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, registerInflaterInputStreamFactory, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, testForUnsplittable
getRuntimeContext, setRuntimeContext
public TextValueInputFormat(Path filePath)
public String getCharsetName()
public void setCharsetName(String charsetName)
public boolean isSkipInvalidLines()
public void setSkipInvalidLines(boolean skipInvalidLines)
public void configure(Configuration parameters)
configure
in interface InputFormat<StringValue,FileInputSplit>
configure
in class DelimitedInputFormat<StringValue>
public StringValue readRecord(StringValue reuse, byte[] bytes, int offset, int numBytes)
readRecord
in class DelimitedInputFormat<StringValue>
public String toString()
toString
in class FileInputFormat<StringValue>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.