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
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestHFileBlockHeaderCorruption.HFileTestRuleprivate final org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIteratorprivate final org.apache.hadoop.hbase.io.hfile.HFile.Reader -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static voidcloseQuietly(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod) booleanhasNext()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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
closeQuietly
private static void closeQuietly(TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator.CloseMethod closeMethod)
-