@InterfaceAudience.Private @InterfaceStability.Evolving public class BlockListAsLongs extends Object implements Iterable<Block>
Modifier and Type | Class and Description |
---|---|
class |
BlockListAsLongs.BlockReportIterator
Iterates over blocks in the block report.
|
Constructor and Description |
---|
BlockListAsLongs() |
BlockListAsLongs(List<? extends Block> finalized,
List<ReplicaInfo> uc)
Create block report from finalized and under construction lists of blocks.
|
BlockListAsLongs(long[] iBlockList)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getBlockGenStamp(int index)
Deprecated.
|
long |
getBlockId(int index)
Deprecated.
|
long |
getBlockLen(int index)
Deprecated.
|
long[] |
getBlockListAsLongs() |
BlockListAsLongs.BlockReportIterator |
getBlockReportIterator()
Returns
BlockListAsLongs.BlockReportIterator . |
long |
getMaxGsInBlockList() |
int |
getNumberOfBlocks()
The number of blocks
|
Iterator<Block> |
iterator()
Returns an iterator over blocks in the block report.
|
public BlockListAsLongs(List<? extends Block> finalized, List<ReplicaInfo> uc)
finalized
- - list of finalized blocksuc
- - list of under construction blockspublic BlockListAsLongs()
public BlockListAsLongs(long[] iBlockList)
iBlockList
- - BlockListALongs create from this long[] parameterpublic long[] getBlockListAsLongs()
public BlockListAsLongs.BlockReportIterator getBlockReportIterator()
BlockListAsLongs.BlockReportIterator
.public int getNumberOfBlocks()
@Deprecated public long getBlockId(int index)
index
- - the block whose block-id is desired@Deprecated public long getBlockLen(int index)
index
- - the block whose block-len is desired@Deprecated public long getBlockGenStamp(int index)
index
- - the block whose block-len is desiredpublic long getMaxGsInBlockList()
Copyright © 2013 Apache Software Foundation. All rights reserved.