scan.setStopRow(keyRange.getUpperRange());
try {
//this.resultIterator = queryPlan.iterator();
TableResultIterator tableResultIterator = new TableResultIterator(queryPlan.getContext(), queryPlan.getTableRef(),scan);
if(queryPlan.getContext().getSequenceManager().getSequenceCount() > 0) {
this.resultIterator = new SequenceResultIterator(tableResultIterator, queryPlan.getContext().getSequenceManager());
} else {
this.resultIterator = tableResultIterator;
}
this.resultSet = new PhoenixResultSet(this.resultIterator, queryPlan.getProjector(),queryPlan.getContext().getStatement());
} catch (SQLException e) {