public class MemoryFetchedInput extends FetchedInput
FetchedInput.State, FetchedInput.Type| Constructor and Description |
|---|
MemoryFetchedInput(long actualSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler) |
| 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.
|
byte[] |
getBytes() |
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.
|
long |
getSize() |
FetchedInput.Type |
getType() |
String |
toString() |
equals, getId, getInputAttemptIdentifier, getState, hashCode, isState, notifyFetchComplete, notifyFetchFailure, notifyFreedResource, setStatepublic MemoryFetchedInput(long actualSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler)
public FetchedInput.Type getType()
getType in class FetchedInputpublic long getSize()
getSize in class FetchedInputpublic OutputStream getOutputStream()
FetchedInputgetOutputStream in class FetchedInputpublic InputStream getInputStream()
FetchedInputgetInputStream in class FetchedInputpublic byte[] getBytes()
public void commit()
FetchedInputcommit in class FetchedInputpublic void abort()
FetchedInputabort in class FetchedInputpublic void free()
FetchedInputfree in class FetchedInputCopyright © 2017 Apache Software Foundation. All rights reserved.