@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,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength() |
long |
getPosition() |
boolean |
nextRawKey(org.apache.hadoop.io.DataInputBuffer key) |
void |
nextRawValue(org.apache.hadoop.io.DataInputBuffer value) |
void |
reset(int offset) |
disableChecksumValidation, positionToNextRecordpublic InMemoryReader(MergeManagerImpl<K,V> merger, TaskAttemptID taskAttemptId, byte[] data, int start, int length, org.apache.hadoop.conf.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(org.apache.hadoop.io.DataInputBuffer key)
throws IOException
nextRawKey in class IFile.Reader<K,V>IOExceptionpublic void nextRawValue(org.apache.hadoop.io.DataInputBuffer value)
throws IOException
nextRawValue in class IFile.Reader<K,V>IOExceptionpublic void close()
close in class IFile.Reader<K,V>Copyright © 2022 Apache Software Foundation. All rights reserved.