From 337d1e6e6ad71086bfedb90e32f69fc4c13a7dd3 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 21 Jan 2013 18:49:44 +0000 Subject: [PATCH] re-apply r1436460 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1436548 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/codecs/lucene42/Lucene42DocValuesConsumer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene42/Lucene42DocValuesConsumer.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene42/Lucene42DocValuesConsumer.java index 344549d8e7f..502ceea16d5 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene42/Lucene42DocValuesConsumer.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene42/Lucene42DocValuesConsumer.java @@ -37,7 +37,6 @@ import org.apache.lucene.util.fst.FST.INPUT_TYPE; import org.apache.lucene.util.fst.PositiveIntOutputs; import org.apache.lucene.util.fst.Util; import org.apache.lucene.util.packed.PackedInts; -import org.apache.lucene.util.packed.PackedInts.FormatAndBits; /** * Writes numbers one of two ways: @@ -143,8 +142,7 @@ class Lucene42DocValuesConsumer extends DocValuesConsumer { data.writeLong(minValue); - FormatAndBits formatAndBits = PackedInts.fastestFormatAndBits(count, bitsPerValue, PackedInts.COMPACT); - final PackedInts.Writer writer = PackedInts.getWriter(data, count, formatAndBits.bitsPerValue, 0); + final PackedInts.Writer writer = PackedInts.getWriter(data, count, bitsPerValue, PackedInts.COMPACT); for(Number nv : values) { writer.add(nv.longValue() - minValue); }