org.apache.tez.runtime.library.shuffle.common
Class DiskFetchedInput
java.lang.Object
org.apache.tez.runtime.library.shuffle.common.FetchedInput
org.apache.tez.runtime.library.shuffle.common.DiskFetchedInput
public class DiskFetchedInput
- extends FetchedInput
DiskFetchedInput
public DiskFetchedInput(long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.LocalDirAllocator localDirAllocator,
TezTaskOutputFiles filenameAllocator)
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- 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
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- 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
- Throws:
IOException
commit
public void commit()
throws IOException
- Description copied from class:
FetchedInput
- Commit the output. Should be idempotent
- Specified by:
commit in class FetchedInput
- Throws:
IOException
abort
public void abort()
throws IOException
- Description copied from class:
FetchedInput
- Abort the output. Should be idempotent
- Specified by:
abort in class FetchedInput
- Throws:
IOException
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.