@Override
  public boolean advance() {
    if (isEmpty()) {
      return false;
    }
    cellScannerIndex++;
    if (cellScannerIndex < this.cells.length) {
      return true;
    } else if (cellScannerIndex == this.cells.length) {
      return false;
    }
    throw new NoSuchElementException("Cannot advance beyond the last cell");
  }
For client users: You should only use the return value as a {@link Cell}, {@link ExtendedCell}
is marked as IA.Private which means there is no guarantee about its API stability.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java