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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final org.apache.hadoop.conf.Configurationprivate ImmutableBytesWritableprivate intprivate ImmutableBytesWritableprivate org.apache.hadoop.io.MapFile.Reader -
Constructor Summary
ConstructorsConstructorDescriptionReader(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-