msvens / mellowtech-core

Apache License 2.0
2 stars 1 forks source link

Allow MemBlockFiles to return the mapped byte buffer instead of byte[] copy #9

Closed msvens closed 8 years ago

msvens commented 8 years ago

Currently the MappedByteBuffer block files copy data from its internal mappedByteBuffer to an array. In many situations you want to directly access the mappedbytebuffer (or a slice of it) to increase IO speed.

msvens commented 8 years ago

RecordFile and SplitRecordFile now has an optional function getMapped that returns a MappedByteBuffer instead of byte[] to a record. This issue will be closed for now