|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.runtime.library.shuffle.common.FetchedInput
@InterfaceAudience.Private public abstract class FetchedInput
| Nested Class Summary | |
|---|---|
protected static class |
FetchedInput.State
|
static class |
FetchedInput.Type
|
| Field Summary | |
|---|---|
protected long |
actualSize
|
protected FetchedInputCallback |
callback
|
protected long |
compressedSize
|
protected int |
id
|
protected InputAttemptIdentifier |
inputAttemptIdentifier
|
protected FetchedInput.State |
state
|
protected FetchedInput.Type |
type
|
| Constructor Summary | |
|---|---|
FetchedInput(FetchedInput.Type type,
long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler)
|
|
| Method Summary | |
|---|---|
abstract void |
abort()
Abort the output. |
abstract void |
commit()
Commit the output. |
boolean |
equals(Object obj)
|
abstract void |
free()
Called when this input has been consumed, so that resources can be reclaimed. |
long |
getActualSize()
|
long |
getCompressedSize()
|
InputAttemptIdentifier |
getInputAttemptIdentifier()
|
abstract InputStream |
getInputStream()
Return an input stream to be used to read the previously fetched data. |
abstract OutputStream |
getOutputStream()
Returns the output stream to be used to write fetched data. |
FetchedInput.Type |
getType()
|
int |
hashCode()
|
void |
notifyFetchComplete()
Inform the Allocator about a committed resource. |
void |
notifyFetchFailure()
Inform the Allocator about a failed resource. |
void |
notifyFreedResource()
Inform the Allocator about a completed resource being released. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InputAttemptIdentifier inputAttemptIdentifier
protected final long actualSize
protected final long compressedSize
protected final FetchedInput.Type type
protected final FetchedInputCallback callback
protected final int id
protected FetchedInput.State state
| Constructor Detail |
|---|
public FetchedInput(FetchedInput.Type type,
long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler)
| Method Detail |
|---|
public FetchedInput.Type getType()
public long getActualSize()
public long getCompressedSize()
public InputAttemptIdentifier getInputAttemptIdentifier()
public void notifyFetchComplete()
public void notifyFetchFailure()
public void notifyFreedResource()
public abstract OutputStream getOutputStream()
throws IOException
IOException
public abstract InputStream getInputStream()
throws IOException
IOException
public abstract void commit()
throws IOException
IOException
public abstract void abort()
throws IOException
IOExceptionpublic abstract void free()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||