Package org.apache.hadoop.hbase.io.hfile
Class TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- TestHFileBlockHeaderCorruption
public static class TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator
extends Object
implements Closeable
A simplified wrapper over an
HFileBlock.BlockIterator
that looks a lot like an
Iterator
.-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TestHFileBlockHeaderCorruption.HFileTestRule
private final org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIterator
private final org.apache.hadoop.hbase.io.hfile.HFile.Reader
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static void
closeQuietly
(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod) boolean
hasNext()
next()
-
Field Details
-
hFileTestRule
-
reader
-
iter
-
current
-
-
Constructor Details
-
HFileBlockChannelPositionIterator
public HFileBlockChannelPositionIterator(TestHFileBlockHeaderCorruption.HFileTestRule hFileTestRule) throws IOException - Throws:
IOException
-
-
Method Details
-
hasNext
- Throws:
IOException
-
next
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
closeQuietly
private static void closeQuietly(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod)
-