org.apache.lucene.util.packed
Interface PackedInts.ReaderIterator

All Superinterfaces:
Closeable
Enclosing class:
PackedInts

public static interface PackedInts.ReaderIterator
extends Closeable

Run-once iterator interface, to decode previously saved PackedInts.


Method Summary
 long advance(int ord)
          Skips to the given ordinal and returns its value.
 int getBitsPerValue()
          Returns number of bits per value
 long next()
          Returns next value
 int ord()
          Returns the current position
 int size()
          Returns number of values
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

next

long next()
          throws IOException
Returns next value

Throws:
IOException

getBitsPerValue

int getBitsPerValue()
Returns number of bits per value


size

int size()
Returns number of values


ord

int ord()
Returns the current position


advance

long advance(int ord)
             throws IOException
Skips to the given ordinal and returns its value.

Returns:
the value at the given position
Throws:
IOException - if reading the value throws an IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.