return iter.hasNext() || key != null;
}
@Override
public Tuple2<ByteArray, List<byte[]>> next() {
ByteArray nextKey = null;
List<byte[]> next = null;
while (iter.hasNext()) {
Tuple2<ByteArray, List<byte[]>> t = iter.next();
if (key == null) {
key = t._1();