public static class TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator extends Object implements Closeable
HFileBlock.BlockIterator
that looks a lot like an
Iterator
.Modifier and Type | Class and Description |
---|---|
private static interface |
TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod |
Modifier and Type | Field and Description |
---|---|
private TestHFileBlockHeaderCorruption.HFileBlockChannelPosition |
current |
private TestHFileBlockHeaderCorruption.HFileTestRule |
hFileTestRule |
private org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIterator |
iter |
private org.apache.hadoop.hbase.io.hfile.HFile.Reader |
reader |
Constructor and Description |
---|
HFileBlockChannelPositionIterator(TestHFileBlockHeaderCorruption.HFileTestRule hFileTestRule) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private static void |
closeQuietly(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod) |
boolean |
hasNext() |
TestHFileBlockHeaderCorruption.HFileBlockChannelPosition |
next() |
private final TestHFileBlockHeaderCorruption.HFileTestRule hFileTestRule
private final org.apache.hadoop.hbase.io.hfile.HFile.Reader reader
private final org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIterator iter
private TestHFileBlockHeaderCorruption.HFileBlockChannelPosition current
public HFileBlockChannelPositionIterator(TestHFileBlockHeaderCorruption.HFileTestRule hFileTestRule) throws IOException
IOException
public boolean hasNext() throws IOException
IOException
public TestHFileBlockHeaderCorruption.HFileBlockChannelPosition next()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
private static void closeQuietly(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.