@Override public boolean hasNext(){
  if (allRowsResult.size() == 0) {
    return false;
  }
  totalRecordCounter++;
  listRecordCounter++;
  if (listRecordCounter == 0 || (listRecordCounter >= currentRowPointer.size() && currentListCounter < allRowsResult.size())) {
    listRecordCounter=0;
    currentRowPointer=allRowsResult.get(currentListCounter);
    currentListCounter++;
  }
  return totalRecordCounter < totalNumberOfRecords;
}

@ Override public boolean hasNext ( ) { if ( allRowsResult . size ( ) == 0 ) { return false ; } totalRecordCounter ++ ; listRecordCounter ++ ; if ( listRecordCounter == 0 || ( listRecordCounter >= currentRowPointer . size ( ) && currentListCounter < allRowsResult . size ( ) ) ) { listRecordCounter = 0 ; currentRowPointer = allRowsResult . get ( currentListCounter ) ; currentListCounter ++ ; } return totalRecordCounter < totalNumberOfRecords ; }
method to check more result is present or not
