@InterfaceAudience.Private @InterfaceStability.Unstable public class InMemoryReader extends IFile.Reader
IFile.InMemoryReader to read map-outputs present in-memory.IFile.Reader.KeyStatebuffer, bufferSize, bytesRead, currentKeyLength, currentValueLength, dataIn, eof, MAX_BUFFER_SIZE, originalKeyLength, prevKeyLength, recNo| Constructor and Description |
|---|
InMemoryReader(MergeManager merger,
InputAttemptIdentifier taskAttemptId,
byte[] data,
int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength() |
long |
getPosition() |
void |
nextRawValue(org.apache.hadoop.io.DataInputBuffer value) |
protected void |
readKeyValueLength(DataInput dIn) |
IFile.Reader.KeyState |
readRawKey(org.apache.hadoop.io.DataInputBuffer key) |
void |
reset(int offset) |
disableChecksumValidation, isCompressedFlagEnabled, nextRawKey, positionToNextRecord, readToDisk, readToMemory, readValueLengthpublic InMemoryReader(MergeManager merger, InputAttemptIdentifier taskAttemptId, byte[] data, int start, int length) throws IOException
IOExceptionpublic void reset(int offset)
reset in class IFile.Readerpublic long getPosition()
throws IOException
getPosition in class IFile.ReaderIOExceptionpublic long getLength()
getLength in class IFile.Readerprotected void readKeyValueLength(DataInput dIn) throws IOException
readKeyValueLength in class IFile.ReaderIOExceptionpublic IFile.Reader.KeyState readRawKey(org.apache.hadoop.io.DataInputBuffer key) throws IOException
readRawKey in class IFile.ReaderIOExceptionpublic void nextRawValue(org.apache.hadoop.io.DataInputBuffer value)
throws IOException
nextRawValue in class IFile.ReaderIOExceptionpublic void close()
close in class IFile.ReaderCopyright © 2017 Apache Software Foundation. All rights reserved.