public class DiskFetchedInput extends FetchedInput
FetchedInput.State, FetchedInput.TypeactualSize, callback, compressedSize, id, inputAttemptIdentifier, state, type| Constructor and Description |
|---|
DiskFetchedInput(long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.LocalDirAllocator localDirAllocator,
TezTaskOutputFiles filenameAllocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort the output.
|
void |
commit()
Commit the output.
|
void |
free()
Called when this input has been consumed, so that resources can be
reclaimed.
|
org.apache.hadoop.fs.Path |
getInputPath() |
InputStream |
getInputStream()
Return an input stream to be used to read the previously fetched data.
|
OutputStream |
getOutputStream()
Returns the output stream to be used to write fetched data.
|
String |
toString() |
equals, getActualSize, getCompressedSize, getInputAttemptIdentifier, getType, hashCode, notifyFetchComplete, notifyFetchFailure, notifyFreedResourcepublic 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
IOExceptionpublic OutputStream getOutputStream() throws IOException
FetchedInputgetOutputStream in class FetchedInputIOExceptionpublic InputStream getInputStream() throws IOException
FetchedInputgetInputStream in class FetchedInputIOExceptionpublic final org.apache.hadoop.fs.Path getInputPath()
public void commit()
throws IOException
FetchedInputcommit in class FetchedInputIOExceptionpublic void abort()
throws IOException
FetchedInputabort in class FetchedInputIOExceptionpublic void free()
FetchedInputfree in class FetchedInputCopyright © 2016 Apache Software Foundation. All rights reserved.