org.apache.hadoop.mapreduce.task.reduce
Class DirectInMemoryReader<K,V>
java.lang.Object
org.apache.hadoop.mapred.IFile.Reader<K,V>
org.apache.hadoop.mapreduce.task.reduce.DirectInMemoryReader<K,V>
public class DirectInMemoryReader<K,V>
- extends org.apache.hadoop.mapred.IFile.Reader<K,V>
| Fields inherited from class org.apache.hadoop.mapred.IFile.Reader |
buffer, bufferSize, bytesRead, currentKeyLength, currentValueLength, dataIn, eof, fileLength, recNo |
| Methods inherited from class org.apache.hadoop.mapred.IFile.Reader |
disableChecksumValidation, positionToNextRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectInMemoryReader
public DirectInMemoryReader(DirectShuffleMergeManagerImpl<K,V> merger,
org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId,
byte[] data,
int start,
int length,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Throws:
IOException
reset
public void reset(int offset)
- Overrides:
reset in class org.apache.hadoop.mapred.IFile.Reader<K,V>
getPosition
public long getPosition()
throws IOException
- Overrides:
getPosition in class org.apache.hadoop.mapred.IFile.Reader<K,V>
- Throws:
IOException
getLength
public long getLength()
- Overrides:
getLength in class org.apache.hadoop.mapred.IFile.Reader<K,V>
nextRawKey
public boolean nextRawKey(org.apache.hadoop.io.DataInputBuffer key)
throws IOException
- Overrides:
nextRawKey in class org.apache.hadoop.mapred.IFile.Reader<K,V>
- Throws:
IOException
nextRawValue
public void nextRawValue(org.apache.hadoop.io.DataInputBuffer value)
throws IOException
- Overrides:
nextRawValue in class org.apache.hadoop.mapred.IFile.Reader<K,V>
- Throws:
IOException
close
public void close()
- Overrides:
close in class org.apache.hadoop.mapred.IFile.Reader<K,V>
Copyright © 2014 Apache Software Foundation. All Rights Reserved.