return result + s + "\n-> " + this.nextLeafNode;
}
public void writeLeafNode(final boolean overwrite) {
try {
final OutputStream out = new PageOutputStream(this.filename, this.pageManager, !overwrite);
OutHelper.writeLuposBoolean(true, out);
final Iterator<V> it = this.readValues.iterator();
V lastValue = null;
K lastKey = null;
for (final K k : this.readKeys) {
final V v = it.next();
this.writeLeafEntry(k, v, lastKey, lastValue, out);
lastKey = k;
lastValue = v;
}
if (this.nextLeafNode != null) {
this.nodeDeSerializer.writeLeafEntryNextFileName(this.nextLeafNode, out);
}
out.close();
} catch (final IOException e) {
System.err.println(e);
e.printStackTrace();
}
}