Class ResultScannerImpl

java.lang.Object
com.mapr.fs.MapRResultScanner
com.mapr.fs.hbase.ResultScannerImpl
All Implemented Interfaces:
Closeable, AutoCloseable, 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

    Modifier and Type
    Method
    Description
    org.apache.hadoop.hbase.client.metrics.ScanMetrics
     
    Iterator<org.apache.hadoop.hbase.client.Result>
     
    org.apache.hadoop.hbase.client.Result
    Grab the next row's worth of values.
    org.apache.hadoop.hbase.client.Result[]
    next(int nbRows)
     
    boolean
     

    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 Details

    • next

      public org.apache.hadoop.hbase.client.Result next() throws 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:
      IOException - e
    • next

      public org.apache.hadoop.hbase.client.Result[] next(int nbRows) throws 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:
      IOException - e
    • iterator

      public Iterator<org.apache.hadoop.hbase.client.Result> iterator()
      Specified by:
      iterator in interface 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