Package org.apache.lucene.util.packed
Class PackedInts.ReaderIteratorImpl
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedInts.ReaderIteratorImpl
-
- All Implemented Interfaces:
PackedInts.ReaderIterator
- Direct Known Subclasses:
PackedReaderIterator
- Enclosing class:
- PackedInts
abstract static class PackedInts.ReaderIteratorImpl extends java.lang.Object implements PackedInts.ReaderIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected int
bitsPerValue
protected DataInput
in
protected int
valueCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReaderIteratorImpl(int valueCount, int bitsPerValue, DataInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitsPerValue()
Returns number of bits per valuelong
next()
Returns next valueint
size()
Returns number of values-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.packed.PackedInts.ReaderIterator
next, ord
-
-
-
-
Field Detail
-
in
protected final DataInput in
-
bitsPerValue
protected final int bitsPerValue
-
valueCount
protected final int valueCount
-
-
Constructor Detail
-
ReaderIteratorImpl
protected ReaderIteratorImpl(int valueCount, int bitsPerValue, DataInput in)
-
-
Method Detail
-
next
public long next() throws java.io.IOException
Description copied from interface:PackedInts.ReaderIterator
Returns next value- Specified by:
next
in interfacePackedInts.ReaderIterator
- Throws:
java.io.IOException
-
getBitsPerValue
public int getBitsPerValue()
Description copied from interface:PackedInts.ReaderIterator
Returns number of bits per value- Specified by:
getBitsPerValue
in interfacePackedInts.ReaderIterator
-
size
public int size()
Description copied from interface:PackedInts.ReaderIterator
Returns number of values- Specified by:
size
in interfacePackedInts.ReaderIterator
-
-