mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
22.06.2014 33476745e5f3a06f3bcddca6be6c0f5aab9a9818
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, September 22, 2014 12:06 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, September 22, 2014 12:06 +0200
commit33476745e5f3a06f3bcddca6be6c0f5aab9a9818
tree 701873b5d2d49ffbc03bf2046b2d4f250dcd6b49 tree | zip | gz
parent 881f54eb7883179a5730ae0e6f9eb18e6dffbee5 view | diff
OPENDJ-1472 : File based changelog : optimize random seek in each log file
CR-3727

[Note: real merge of all changelog.file package content to be done in one shot in
a future commit]

Implements read and write with blocks, to enable binary search.

* New BlockLogReader class: read records sequentially or using
binary search provided a key

* New BlockLogWriter class: write records by blocks

* New BlockLogReaderWriterTest class : tests read/write with blocks

* Update LogFile : delegate responsibility for read/write to BlockLogXXX

* Add method ByteStringBuilder#append(DataInput, int) to avoid
byte array copy

* Minor changes in other files
2 files modified
35 ■■■■■ changed files
opendj-sdk/opendj3-server-dev/src/messages/messages/replication.properties 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java 32 ●●●●● diff | view | raw | blame | history