org.apache.hadoop.hbase.io.hfile
Interface HFileBlock.BlockIterator

Enclosing class:
HFileBlock

public static interface HFileBlock.BlockIterator

An interface allowing to iterate HFileBlocks.


Method Summary
 HFileBlock nextBlock()
          Get the next block, or null if there are no more blocks to iterate.
 DataInputStream nextBlockAsStream(BlockType blockType)
          Similar to nextBlock() but checks block type, throws an exception if incorrect, and returns the data portion of the block as an input stream.
 

Method Detail

nextBlock

HFileBlock nextBlock()
                     throws IOException
Get the next block, or null if there are no more blocks to iterate.

Throws:
IOException

nextBlockAsStream

DataInputStream nextBlockAsStream(BlockType blockType)
                                  throws IOException
Similar to nextBlock() but checks block type, throws an exception if incorrect, and returns the data portion of the block as an input stream.

Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.