* @param idx
* Index of the DBNode
* @return The DBNode with the index idx
*/
public IDBNode loadDBNode(final int idx, Deserializer deserializer) {
IDBNode node = this.nodeBuffer.get(idx);
if (node == null) {
final NodeInputStream nodeInputStream = this.getInputStream(idx);
if (nodeInputStream != null) {
try {
node = deserializer.deserialize(this, idx, nodeInputStream);
nodeInputStream.close();
this.nodeBuffer.add(node.getNodeIndex(), node);
}
catch (IOException e) {
e.printStackTrace();
}
}