@Override
@SuppressWarnings("unchecked")
public boolean nextKeyValue() throws IOException, InterruptedException {
boolean nextp = super.nextKeyValue();
if (nextp) {
Indexed kv = getCurrentRecord();
key.datum((K) kv.nth(0));
val.datum((V) kv.nth(1));
} else {
key.datum(null);
val.datum(null);
}
return nextp;