Class HashTable.TableHash.Reader
java.lang.Object
org.apache.hadoop.hbase.mapreduce.HashTable.TableHash.Reader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- HashTable.TableHash
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final org.apache.hadoop.conf.Configuration
private ImmutableBytesWritable
private int
private ImmutableBytesWritable
private org.apache.hadoop.io.MapFile.Reader
-
Constructor Summary
ConstructorDescriptionReader
(org.apache.hadoop.conf.Configuration conf, ImmutableBytesWritable startKey) -
Method Summary
-
Field Details
-
conf
-
hashFileIndex
-
mapFileReader
-
cachedNext
-
key
-
hash
-
-
Constructor Details
-
Reader
Reader(org.apache.hadoop.conf.Configuration conf, ImmutableBytesWritable startKey) throws IOException - Throws:
IOException
-
-
Method Details
-
next
Read the next key/hash pair. Returns true if such a pair exists and false when at the end of the data.- Throws:
IOException
-
getCurrentKey
Get the current key- Returns:
- the current key or null if there is no current key
-
getCurrentHash
Get the current hash- Returns:
- the current hash or null if there is no current hash
-
openHashFile
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-