167168169170171172173174
writer.writeEntry(startKey); startKey = keyCursor.readNext(); } is = new ByteArrayInputStream (os.toByteArray()); return new KeyFinalCursor(new StreamIterator(is), rowType, API.SortOption.PRESERVE_DUPLICATES, null); }