@Override
      public Result next() {
        // since hasNext() does the real advancing, we call this to determine
        // if there is a next before proceeding.
        if (!hasNext()) {
          return null;
        }

        // if we get to here, then hasNext() has given us an item to return.
        // we want to return the item and then null out the next pointer, so
        // we use a temporary variable.
        Result temp = next;
        next = null;
        return temp;
      }
Interface for client-side scanning. Go to {@link Table} to obtain instances.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ResultScanner.java