문제

I would like to implement an B+ tree in Java and try to optimize it for disk based I/O. Is there an API for accessing individual disk blocks from Java? or is there an API that can do similar block-oriented access that fits my purpose?

I would like to create something like Tokyo Cabinet in 100% Java. Is there anyone that knows what Java only databases like JavaDB is using in the back-end for this?

I know that there are probably other languages than Java that can do this better, but I do this in a learning purpose only.

도움이 되었습니까?

해결책

Off the top of my head I think that MappedByteBuffer in NIO could be your best bet. It's basically as-direct-as-possible mapping between HDD and Java.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top