From 059d610de8155144c9707dbd663f25586b9998dd Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 26 Jan 2013 13:24:44 +0000 Subject: [PATCH] More format docs. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1438892 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/util/packed/BlockPackedWriter.java | 23 +++++++++++++++ .../packed/MonotonicBlockPackedWriter.java | 28 ++++++++++++++++--- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/BlockPackedWriter.java b/lucene/core/src/java/org/apache/lucene/util/packed/BlockPackedWriter.java index 4deb6ec20aa..6c39b87f98c 100644 --- a/lucene/core/src/java/org/apache/lucene/util/packed/BlockPackedWriter.java +++ b/lucene/core/src/java/org/apache/lucene/util/packed/BlockPackedWriter.java @@ -29,7 +29,30 @@ import org.apache.lucene.store.DataOutput; * using as few bits as possible. Memory usage of this class is proportional to * the block size. Each block has an overhead between 1 and 10 bytes to store * the minimum value and the number of bits per value of the block. + *

+ * Format: + *

* @see BlockPackedReaderIterator + * @see BlockPackedReader * @lucene.internal */ public final class BlockPackedWriter extends AbstractBlockPackedWriter { diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/MonotonicBlockPackedWriter.java b/lucene/core/src/java/org/apache/lucene/util/packed/MonotonicBlockPackedWriter.java index 500f9392c71..a56d76fc19d 100644 --- a/lucene/core/src/java/org/apache/lucene/util/packed/MonotonicBlockPackedWriter.java +++ b/lucene/core/src/java/org/apache/lucene/util/packed/MonotonicBlockPackedWriter.java @@ -24,10 +24,30 @@ import org.apache.lucene.store.DataOutput; /** * A writer for large monotonically increasing sequences of positive longs. *

- * The sequence is divided into fixed-size blocks and for each block, the - * average value per ord is computed, followed by the delta from the expected - * value for every ord, using as few bits as possible. Each block has an - * overhead between 6 and 14 bytes. + * The sequence is divided into fixed-size blocks and for each block, values + * are modeled after a linear function f: x → A × x + B. The block + * encodes deltas from the expected values computed from this function using as + * few bits as possible. Each block has an overhead between 6 and 14 bytes. + *

+ * Format: + *

* @see MonotonicBlockPackedReader * @lucene.internal */