public abstract class BlockInStream extends InStream
InputStream interface implementation of TachyonFile. It can only be gotten by
calling the methods in tachyon.client.TachyonFile, but can not be initialized by the
client code.| Modifier and Type | Field and Description |
|---|---|
protected int |
mBlockIndex |
protected boolean |
mClosed |
mFile, mReadType, mTachyonFS| Modifier and Type | Method and Description |
|---|---|
static BlockInStream |
get(TachyonFile tachyonFile,
ReadType readType,
int blockIndex)
Get a new BlockInStream of the given block without under file system configuration.
|
static BlockInStream |
get(TachyonFile tachyonFile,
ReadType readType,
int blockIndex,
Object ufsConf)
Get a new BlockInStream of the given block with the under file system configuration.
|
available, mark, markSupported, resetpublic static BlockInStream get(TachyonFile tachyonFile, ReadType readType, int blockIndex) throws IOException
tachyonFile - the file the block belongs toreadType - the InStream's read typeblockIndex - the index of the block in the tachyonFileIOExceptionpublic static BlockInStream get(TachyonFile tachyonFile, ReadType readType, int blockIndex, Object ufsConf) throws IOException
tachyonFile - the file the block belongs toreadType - the InStream's read typeblockIndex - the index of the block in the tachyonFileufsConf - the under file system configurationIOExceptionCopyright © 2015. All Rights Reserved.