Is there a API to reset the PartitionReader iterator?
In the below code,
Code: Select all
virtual void processPartition(ServerInterface &srvInterface,
PartitionReader &input_reader,
PartitionWriter &output_writer) {
do{
// do something with input_reader
} while (input_reader.next());
// Later, I want to access input_reader again from the beginning.
do{
// do something with input_reader again
} while (input_reader.next());
}