org.apache.lucene.util.packed
Class MonotonicBlockPackedReader

java.lang.Object
  extended by org.apache.lucene.index.NumericDocValues
      extended by org.apache.lucene.util.LongValues
          extended by org.apache.lucene.util.packed.MonotonicBlockPackedReader

public final class MonotonicBlockPackedReader
extends LongValues

Provides random access to a stream written with MonotonicBlockPackedWriter.

NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

Field Summary
 
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
 
Constructor Summary
MonotonicBlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct)
          Sole constructor.
 
Method Summary
 long get(long index)
          Get value at index.
 long ramBytesUsed()
          Returns the approximate RAM bytes used
 long size()
          Returns the number of values
 
Methods inherited from class org.apache.lucene.util.LongValues
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonotonicBlockPackedReader

public MonotonicBlockPackedReader(IndexInput in,
                                  int packedIntsVersion,
                                  int blockSize,
                                  long valueCount,
                                  boolean direct)
                           throws IOException
Sole constructor.

Throws:
IOException
Method Detail

get

public long get(long index)
Description copied from class: LongValues
Get value at index.

Specified by:
get in class LongValues

size

public long size()
Returns the number of values


ramBytesUsed

public long ramBytesUsed()
Returns the approximate RAM bytes used



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