@InterfaceAudience.Private @InterfaceStability.Unstable public class InMemoryReader<K,V> extends IFile.Reader<K,V>
IFile.InMemoryReader to read map-outputs present in-memory.buffer, bufferSize, bytesRead, currentKeyLength, currentValueLength, dataIn, eof, fileLength, recNo| Constructor and Description |
|---|
InMemoryReader(MergeManagerImpl<K,V> merger,
TaskAttemptID taskAttemptId,
byte[] data,
int start,
int length,
Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength() |
long |
getPosition() |
boolean |
nextRawKey(DataInputBuffer key) |
void |
nextRawValue(DataInputBuffer value) |
void |
reset(int offset) |
disableChecksumValidation, positionToNextRecordpublic InMemoryReader(MergeManagerImpl<K,V> merger, TaskAttemptID taskAttemptId, byte[] data, int start, int length, Configuration conf) throws IOException
IOExceptionpublic void reset(int offset)
reset in class IFile.Reader<K,V>public long getPosition()
throws IOException
getPosition in class IFile.Reader<K,V>IOExceptionpublic long getLength()
getLength in class IFile.Reader<K,V>public boolean nextRawKey(DataInputBuffer key) throws IOException
nextRawKey in class IFile.Reader<K,V>IOExceptionpublic void nextRawValue(DataInputBuffer value) throws IOException
nextRawValue in class IFile.Reader<K,V>IOExceptionpublic void close()
close in class IFile.Reader<K,V>Copyright © 2013 Apache Software Foundation. All rights reserved.