for (int index = 0; index < 10; index++) {
final long position = (long) HeapHeader.HEAP_HEADER_SIZE
+ (long) index
* (HeapRecord.DATA_RECORD_HEADER_SIZE + 100 + 4);
logger.info("position " + position + " for #" + index);
@SuppressWarnings("PMD")
final HeapRecord heapRecord =
/**/new HeapRecord(
/**/heapElementManager, position, previousPosition,
newDataRecordIdentifier(index), false/* freeRecord */,
10/* dataAssociatedSize */, 100/* areaSize */);
// final HeapRecord heapRecord = heapElementManager
// .newHeapFileRecord(position, previousPosition,
// newDataRecordIdentifier(index),
// false/* freeRecord */, 10/* dataAssociatedSize */,
// 100/* areaSize */);
heapElementManager.appendHeapFileRecord(heapRecord);
heapRecord.setDataAssociated(new byte[10]);// NOPMD new in loop is
// ok
previousPosition = position;
final HeapIdNode node = (HeapIdNode) heapRecord.getIdNode();
idNodeTree.append(node);
heapElementManager.closeTransaction();
heapElementManager.openTransaction();
final HeapIdNode foundNode = (HeapIdNode) idNodeTree