public class MemoryFetchedInput extends FetchedInput
FetchedInput.State, FetchedInput.Type
actualSize, 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, notifyFreedResource
public MemoryFetchedInput(long actualSize, long compressedSize, InputAttemptIdentifier inputAttemptIdentifier, FetchedInputCallback callbackHandler)
public OutputStream getOutputStream()
FetchedInput
getOutputStream
in class FetchedInput
public InputStream getInputStream()
FetchedInput
getInputStream
in class FetchedInput
public byte[] getBytes()
public void commit()
FetchedInput
commit
in class FetchedInput
public void abort()
FetchedInput
abort
in class FetchedInput
public void free()
FetchedInput
free
in class FetchedInput
Copyright © 2016 Apache Software Foundation. All rights reserved.