public class MemoryFetchedInput extends FetchedInput
FetchedInput.State, FetchedInput.TypeactualSize, callback, compressedSize, id, inputAttemptIdentifier, state, type| Constructor and Description |
|---|
MemoryFetchedInput(long actualSize,
long compressedSize,
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.
|
String |
toString() |
equals, getActualSize, getCompressedSize, getInputAttemptIdentifier, getType, hashCode, notifyFetchComplete, notifyFetchFailure, notifyFreedResourcepublic MemoryFetchedInput(long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier,
FetchedInputCallback callbackHandler)
public 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 © 2016 Apache Software Foundation. All rights reserved.