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 |
BLOCK_INDEX |
protected boolean |
mClosed |
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, reset
public 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 tachyonFileIOException
public 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 configurationIOException
Copyright © 2014. All rights reserved.