public class TextInputFormat extends DelimitedInputFormat
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ascii |
protected ByteBuffer |
byteWrapper |
static String |
CHARSET_NAME |
protected CharsetDecoder |
decoder |
static String |
DEFAULT_CHARSET_NAME |
static String |
FIELD_POS |
protected int |
pos |
protected org.apache.flink.types.StringValue |
theString |
| Constructor and Description |
|---|
TextInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.flink.configuration.Configuration parameters) |
org.apache.flink.types.Record |
readRecord(org.apache.flink.types.Record reuse,
byte[] bytes,
int offset,
int numBytes)
This function parses the given byte array which represents a serialized key/value
pair.
|
close, configureDelimitedFormat, getBufferSize, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadGloablConfigParams, nextRecord, open, reachedEnd, readLine, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesacceptFile, configureFileFormat, createInputSplits, decorateInputStream, extractFileExtension, getFilePath, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, registerInflaterInputStreamFactory, setFilePath, setFilePath, setMinSplitSize, setNumSplits, setOpenTimeout, testForUnsplittable, toStringpublic static final String CHARSET_NAME
public static final String FIELD_POS
public static final String DEFAULT_CHARSET_NAME
protected final org.apache.flink.types.StringValue theString
protected transient CharsetDecoder decoder
protected transient ByteBuffer byteWrapper
protected transient int pos
protected transient boolean ascii
public void configure(org.apache.flink.configuration.Configuration parameters)
configure in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.types.Record,org.apache.flink.core.fs.FileInputSplit>configure in class org.apache.flink.api.common.io.DelimitedInputFormat<org.apache.flink.types.Record>public org.apache.flink.types.Record readRecord(org.apache.flink.types.Record reuse,
byte[] bytes,
int offset,
int numBytes)
DelimitedInputFormatreadRecord in class DelimitedInputFormatreuse - The optional reusable holder for the line that is read.bytes - The serialized record.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.