public class DiskFetchedInput extends FetchedInput
FetchedInput.State, FetchedInput.Type
actualSize, 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, notifyFreedResource
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
IOException
public OutputStream getOutputStream() throws IOException
FetchedInput
getOutputStream
in class FetchedInput
IOException
public InputStream getInputStream() throws IOException
FetchedInput
getInputStream
in class FetchedInput
IOException
public final org.apache.hadoop.fs.Path getInputPath()
public void commit() throws IOException
FetchedInput
commit
in class FetchedInput
IOException
public void abort() throws IOException
FetchedInput
abort
in class FetchedInput
IOException
public void free()
FetchedInput
free
in class FetchedInput
Copyright © 2016 Apache Software Foundation. All rights reserved.