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

Nicolas Capponi
22.06.2014 a73324289d9ff413e1935adc124227c9528442e7
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
commita73324289d9ff413e1935adc124227c9528442e7
tree ab724fd699a0ffba31dd84b452a27effc8c07e8b tree | zip | gz
parent eb1530c0c9eeb3a860e1d601f861eb5e2989538b 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
opendj3-server-dev/src/messages/messages/replication.properties 3 ●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java 32 ●●●●● diff | view | raw | blame | history