org.apache.hadoop.hbase.mapreduce
Class HashTable.TableHash.Reader

java.lang.Object
  extended by org.apache.hadoop.hbase.mapreduce.HashTable.TableHash.Reader
All Implemented Interfaces:
Closeable
Enclosing class:
HashTable.TableHash

public class HashTable.TableHash.Reader
extends Object
implements Closeable


Method Summary
 void close()
           
 ImmutableBytesWritable getCurrentHash()
          Get the current hash
 ImmutableBytesWritable getCurrentKey()
          Get the current key
 boolean next()
          Read the next key/hash pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public boolean next()
             throws IOException
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

public ImmutableBytesWritable getCurrentKey()
Get the current key

Returns:
the current key or null if there is no current key

getCurrentHash

public ImmutableBytesWritable getCurrentHash()
Get the current hash

Returns:
the current hash or null if there is no current hash

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.