@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, positionToNextRecord
public InMemoryReader(MergeManagerImpl<K,V> merger, TaskAttemptID taskAttemptId, byte[] data, int start, int length, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void reset(int offset)
reset
in class IFile.Reader<K,V>
public long getPosition() throws IOException
getPosition
in class IFile.Reader<K,V>
IOException
public 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>
IOException
public void nextRawValue(org.apache.hadoop.io.DataInputBuffer value) throws IOException
nextRawValue
in class IFile.Reader<K,V>
IOException
public void close()
close
in class IFile.Reader<K,V>
Copyright © 2017 Apache Software Foundation. All Rights Reserved.