org.apache.tez.runtime.library.shuffle.common
Class MemoryFetchedInput
java.lang.Object
org.apache.tez.runtime.library.shuffle.common.FetchedInput
org.apache.tez.runtime.library.shuffle.common.MemoryFetchedInput
public class MemoryFetchedInput
- extends FetchedInput
MemoryFetchedInput
public MemoryFetchedInput(long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler)
getOutputStream
public OutputStream getOutputStream()
- Description copied from class:
FetchedInput
- Returns the output stream to be used to write fetched data. Users are
expected to close the OutputStream when they're done
- Specified by:
getOutputStream in class FetchedInput
getInputStream
public InputStream getInputStream()
- Description copied from class:
FetchedInput
- Return an input stream to be used to read the previously fetched data.
Users are expected to close the InputStream when they're done
- Specified by:
getInputStream in class FetchedInput
getBytes
public byte[] getBytes()
commit
public void commit()
- Description copied from class:
FetchedInput
- Commit the output. Should be idempotent
- Specified by:
commit in class FetchedInput
abort
public void abort()
- Description copied from class:
FetchedInput
- Abort the output. Should be idempotent
- Specified by:
abort in class FetchedInput
free
public void free()
- Description copied from class:
FetchedInput
- Called when this input has been consumed, so that resources can be
reclaimed.
- Specified by:
free in class FetchedInput
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Apache Software Foundation. All rights reserved.