Skip to content

Commit

Permalink
javadoc updated with the note about order of values and their ByteIte…
Browse files Browse the repository at this point in the history
…rable entries
  • Loading branch information
penemue committed Jul 21, 2016
1 parent 59891d3 commit bf0660d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import jetbrains.exodus.ArrayByteIterable;
import jetbrains.exodus.ByteIterable;
import jetbrains.exodus.util.ByteIterableUtil;
import jetbrains.exodus.util.LightOutputStream;
import org.jetbrains.annotations.NotNull;

Expand All @@ -29,6 +30,10 @@
* All the inheritors contain two static methods: one for getting {@linkplain ByteIterable} entry from a value,
* and another for getting value from a {@linkplain ByteIterable} entry.
*
* <p>Bindings save the order of values. This means that the greater the value, the greater the {@code ByteIterable}
* entry. The order of the {@code ByteIterable} entries is defined by
* {@linkplain ByteIterableUtil#compare(ByteIterable, ByteIterable)}.
*
* @see BooleanBinding
* @see ByteBinding
* @see ComparableSetBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
* In addition to typical {@linkplain #intToEntry(int)} and {@linkplain #entryToInt(ByteIterable)} methods operating
* with {@code ByteIterables} of length {@code 4}, {@code IntegerBinding} has a pair of methods for
* serialization/deserialization of non-negative values to/from compressed entries:
* {@linkplain #intToCompressedEntry(int)} and {@linkplain #compressedEntryToInt(ByteIterable)}. The less is a value
* the shorter is its compressed entry. Sometimes compressed entries allow to significantly decrease database size.
* {@linkplain #intToCompressedEntry(int)} and {@linkplain #compressedEntryToInt(ByteIterable)}. The lower the value,
* the shorter the compressed entry. In some cases, compressed entries let you significantly decrease database size.
* Serialization of non-negative integers and longs to compressed entries also saves the order of values.
*
* @see ComparableBinding
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
* In addition to typical {@linkplain #longToEntry(long)} and {@linkplain #entryToLong(ByteIterable)} methods operating
* with {@code ByteIterables} of length {@code 8}, {@code LongBinding} has a pair of methods for
* serialization/deserialization of non-negative values to/from compressed entries:
* {@linkplain #longToCompressedEntry(long)} and {@linkplain #compressedEntryToLong(ByteIterable)}. The less is a value
* the shorter is its compressed entry. Sometimes compressed entries allow to significantly decrease database size.
* {@linkplain #longToCompressedEntry(long)} and {@linkplain #compressedEntryToLong(ByteIterable)}. The lower the value,
* the shorter the compressed entry. In some cases, compressed entries let you significantly decrease database size.
* Serialization of non-negative integers and longs to compressed entries also saves the order of values.
*
* @see ComparableBinding
*/
Expand Down

0 comments on commit bf0660d

Please sign in to comment.