public class HashTable.TableHash.Reader extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
private boolean |
cachedNext |
private org.apache.hadoop.conf.Configuration |
conf |
private ImmutableBytesWritable |
hash |
private int |
hashFileIndex |
private ImmutableBytesWritable |
key |
private org.apache.hadoop.io.MapFile.Reader |
mapFileReader |
Constructor and Description |
---|
Reader(org.apache.hadoop.conf.Configuration conf,
ImmutableBytesWritable startKey) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ImmutableBytesWritable |
getCurrentHash()
Get the current hash
|
ImmutableBytesWritable |
getCurrentKey()
Get the current key
|
boolean |
next()
Read the next key/hash pair.
|
private void |
openHashFile() |
private final org.apache.hadoop.conf.Configuration conf
private int hashFileIndex
private org.apache.hadoop.io.MapFile.Reader mapFileReader
private boolean cachedNext
private ImmutableBytesWritable key
private ImmutableBytesWritable hash
Reader(org.apache.hadoop.conf.Configuration conf, ImmutableBytesWritable startKey) throws IOException
IOException
public boolean next() throws IOException
IOException
public ImmutableBytesWritable getCurrentKey()
public ImmutableBytesWritable getCurrentHash()
private void openHashFile() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.