org.apache.tez.runtime.library.common.shuffle.impl
Class InMemoryReader
java.lang.Object
org.apache.tez.runtime.library.common.sort.impl.IFile.Reader
org.apache.tez.runtime.library.common.shuffle.impl.InMemoryReader
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class InMemoryReader
- extends IFile.Reader
IFile.InMemoryReader to read map-outputs present in-memory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryReader
public InMemoryReader(MergeManager merger,
InputAttemptIdentifier taskAttemptId,
byte[] data,
int start,
int length)
throws IOException
- Throws:
IOException
reset
public void reset(int offset)
- Overrides:
reset in class IFile.Reader
getPosition
public long getPosition()
throws IOException
- Overrides:
getPosition in class IFile.Reader
- Throws:
IOException
getLength
public long getLength()
- Overrides:
getLength in class IFile.Reader
readRawKey
public IFile.Reader.KeyState readRawKey(org.apache.hadoop.io.DataInputBuffer key)
throws IOException
- Overrides:
readRawKey in class IFile.Reader
- Throws:
IOException
nextRawValue
public void nextRawValue(org.apache.hadoop.io.DataInputBuffer value)
throws IOException
- Overrides:
nextRawValue in class IFile.Reader
- Throws:
IOException
close
public void close()
- Overrides:
close in class IFile.Reader
Copyright © 2014 Apache Software Foundation. All rights reserved.