org.apache.lucene.facet.taxonomy
Class CachedOrdinalsReader.CachedOrds

java.lang.Object
  extended by org.apache.lucene.facet.taxonomy.CachedOrdinalsReader.CachedOrds
Enclosing class:
CachedOrdinalsReader

public static final class CachedOrdinalsReader.CachedOrds
extends Object

Holds the cached ordinals in two paralel int[] arrays.


Field Summary
 int[] offsets
          Index into ordinals for each document.
 int[] ordinals
          Holds ords for all docs.
 
Constructor Summary
CachedOrdinalsReader.CachedOrds(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc)
          Creates a new CachedOrdinalsReader.CachedOrds from the BinaryDocValues.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offsets

public final int[] offsets
Index into ordinals for each document.


ordinals

public final int[] ordinals
Holds ords for all docs.

Constructor Detail

CachedOrdinalsReader.CachedOrds

public CachedOrdinalsReader.CachedOrds(OrdinalsReader.OrdinalsSegmentReader source,
                                       int maxDoc)
                                throws IOException
Creates a new CachedOrdinalsReader.CachedOrds from the BinaryDocValues. Assumes that the BinaryDocValues is not null.

Throws:
IOException


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