for (int i = 0; i < size; i++) {
underlying.add(LINK_SERIALIZER.deserializeFromDirectMemoryObject(pointer, p));
p += RID_SIZE;
}
return new OIndexRIDContainer(fileId, underlying, durable);
} else {
final long pageIndex = LONG_SERIALIZER.deserializeFromDirectMemory(pointer, offset + SBTREE_ROOTINDEX_OFFSET);
final int pageOffset = INT_SERIALIZER.deserializeFromDirectMemory(pointer, offset + SBTREE_ROOTOFFSET_OFFSET);
final OBonsaiBucketPointer rootPointer = new OBonsaiBucketPointer(pageIndex, pageOffset);
final OIndexRIDContainerSBTree underlying = new OIndexRIDContainerSBTree(fileId, rootPointer, durable);
return new OIndexRIDContainer(fileId, underlying, durable);
}
}