public class BlockListAsLongs extends Object
构造器和说明 |
---|
BlockListAsLongs(long[] iBlockList)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
static long[] |
convertToArrayLongs(Block[] blockArray)
Converting a block[] to a long[]
|
long |
getBlockGenStamp(int index)
The generation stamp of the indexTh block
|
long |
getBlockId(int index)
The block-id of the indexTh block
|
long |
getBlockLen(int index)
The block-len of the indexTh block
|
int |
getNumberOfBlocks()
The number of blocks
|
public BlockListAsLongs(long[] iBlockList)
iBlockList
- - BlockListALongs create from this long[] parameterpublic static long[] convertToArrayLongs(Block[] blockArray)
blockArray
- - the input array block[]public int getNumberOfBlocks()
public long getBlockId(int index)
index
- - the block whose block-id is desiredpublic long getBlockLen(int index)
index
- - the block whose block-len is desiredpublic long getBlockGenStamp(int index)
index
- - the block whose block-len is desiredCopyright © 2009 The Apache Software Foundation