diff --git a/lucene/src/java/org/apache/lucene/util/packed/Direct16.java b/lucene/src/java/org/apache/lucene/util/packed/Direct16.java index 962e224cb3c..c698bd6ab1f 100644 --- a/lucene/src/java/org/apache/lucene/util/packed/Direct16.java +++ b/lucene/src/java/org/apache/lucene/util/packed/Direct16.java @@ -17,7 +17,7 @@ package org.apache.lucene.util.packed; * limitations under the License. */ -import org.apache.lucene.store.IndexInput; +import org.apache.lucene.store.DataInput; import org.apache.lucene.util.RamUsageEstimator; import java.io.IOException; @@ -38,7 +38,7 @@ public class Direct16 extends PackedInts.ReaderImpl values = new short[valueCount]; } - public Direct16(IndexInput in, int valueCount) throws IOException { + public Direct16(DataInput in, int valueCount) throws IOException { super(valueCount, BITS_PER_VALUE); short[] values = new short[valueCount]; for(int i=0;i 0 && bitsPerValue <= 64: "bitsPerValue=" + bitsPerValue; @@ -244,7 +245,7 @@ public class PackedInts { * @throws IOException if bits could not be written to out. * @lucene.internal */ - public static Writer getWriter(IndexOutput out, int valueCount, int bitsPerValue) + public static Writer getWriter(DataOutput out, int valueCount, int bitsPerValue) throws IOException { return new PackedWriter(out, valueCount, bitsPerValue); } diff --git a/lucene/src/java/org/apache/lucene/util/packed/PackedWriter.java b/lucene/src/java/org/apache/lucene/util/packed/PackedWriter.java index b2c86dd799f..92e361561da 100644 --- a/lucene/src/java/org/apache/lucene/util/packed/PackedWriter.java +++ b/lucene/src/java/org/apache/lucene/util/packed/PackedWriter.java @@ -17,7 +17,7 @@ package org.apache.lucene.util.packed; * limitations under the License. */ -import org.apache.lucene.store.IndexOutput; +import org.apache.lucene.store.DataOutput; import java.io.IOException; @@ -38,7 +38,7 @@ class PackedWriter extends PackedInts.Writer { private final long[] masks; private int written = 0; - public PackedWriter(IndexOutput out, int valueCount, int bitsPerValue) + public PackedWriter(DataOutput out, int valueCount, int bitsPerValue) throws IOException { super(out, valueCount, bitsPerValue);