Class ResultScannerImpl

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<org.apache.hadoop.hbase.client.Result>, org.apache.hadoop.hbase.client.ResultScanner

    public class ResultScannerImpl
    extends com.mapr.fs.MapRResultScanner
    implements org.apache.hadoop.hbase.client.ResultScanner
    • Field Summary

      • Fields inherited from class com.mapr.fs.MapRResultScanner

        htable_
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()  
      java.util.Iterator<org.apache.hadoop.hbase.client.Result> iterator()  
      org.apache.hadoop.hbase.client.Result next()
      Grab the next row's worth of values.
      org.apache.hadoop.hbase.client.Result[] next​(int nbRows)  
      boolean renewLease()  
      • Methods inherited from class com.mapr.fs.MapRResultScanner

        close, nextRow, nextRows, nextRows, releaseTempMemory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface org.apache.hadoop.hbase.client.ResultScanner

        close
    • Method Detail

      • next

        public org.apache.hadoop.hbase.client.Result next()
                                                   throws java.io.IOException
        Grab the next row's worth of values. The scanner will return a Result.
        Specified by:
        next in interface org.apache.hadoop.hbase.client.ResultScanner
        Returns:
        Result object if there is another row, null if the scanner is exhausted.
        Throws:
        java.io.IOException - e
      • next

        public org.apache.hadoop.hbase.client.Result[] next​(int nbRows)
                                                     throws java.io.IOException
        Specified by:
        next in interface org.apache.hadoop.hbase.client.ResultScanner
        Parameters:
        nbRows - number of rows to return
        Returns:
        Between zero and nbRows Results
        Throws:
        java.io.IOException - e
      • iterator

        public java.util.Iterator<org.apache.hadoop.hbase.client.Result> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.apache.hadoop.hbase.client.Result>
      • renewLease

        public boolean renewLease()
        Specified by:
        renewLease in interface org.apache.hadoop.hbase.client.ResultScanner
      • getScanMetrics

        public org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()
        Specified by:
        getScanMetrics in interface org.apache.hadoop.hbase.client.ResultScanner