if (!sessions.hasNext()) {
return null;
}
statements = sessions.next().getPreparedStatements().iterator();
}
PreparedStatementMonitor preparedStatement = statements.next();
ValuesRow row = new ValuesRow(rowType,
(long)preparedStatement.getSessionId(),
preparedStatement.getName(),
preparedStatement.getSQL(),
preparedStatement.getPrepareTimeMillis()/1000,
preparedStatement.getEstimatedRowCount() < 0 ? null : (long)preparedStatement.getEstimatedRowCount(),
++rowCounter);
return row;
}