public class StringInputFormat extends DelimitedInputFormat<Value[]>
DelimitedInputFormat.AbstractConfigBuilder<T>, DelimitedInputFormat.ConfigBuilderFileInputFormat.FileBaseStatistics, FileInputFormat.InputSplitOpenThread| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ascii |
protected ByteBuffer |
byteWrapper |
static String |
CHARSET_NAME |
protected CharsetDecoder |
decoder |
static String |
DEFAULT_CHARSET_NAME |
protected StringValue |
theString |
RECORD_DELIMITERfilePath, minSplitSize, numSplits, openTimeout, splitLength, splitStart, stream| Constructor and Description |
|---|
StringInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration parameters) |
boolean |
readRecord(Value[] target,
byte[] bytes,
int offset,
int numBytes) |
close, configureDelimitedFormat, getBufferSize, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadGloablConfigParams, nextRecord, open, reachedEnd, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesconfigureFileFormat, createInputSplits, getFilePath, getFileStats, getInputSplitType, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, toStringpublic static final String CHARSET_NAME
public static final String DEFAULT_CHARSET_NAME
protected final StringValue theString
protected CharsetDecoder decoder
protected ByteBuffer byteWrapper
protected boolean ascii
public void configure(Configuration parameters)
configure in interface InputFormat<Value[],FileInputSplit>configure in class DelimitedInputFormat<Value[]>public boolean readRecord(Value[] target, byte[] bytes, int offset, int numBytes)
readRecord in class DelimitedInputFormat<Value[]>Copyright © 2013–2014. All rights reserved.