Package org.apache.lucene.facet.taxonomy
Class CachedOrdinalsReader.CachedOrds
- java.lang.Object
-
- org.apache.lucene.facet.taxonomy.CachedOrdinalsReader.CachedOrds
-
- Enclosing class:
- CachedOrdinalsReader
public static final class CachedOrdinalsReader.CachedOrds extends java.lang.Object
Holds the cached ordinals in two paralelint[]
arrays.
-
-
Constructor Summary
Constructors Constructor Description CachedOrds(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc)
Creates a newCachedOrdinalsReader.CachedOrds
from theBinaryDocValues
.
-
-
-
Field Detail
-
offsets
public final int[] offsets
Index intoordinals
for each document.
-
ordinals
public final int[] ordinals
Holds ords for all docs.
-
-
Constructor Detail
-
CachedOrds
public CachedOrds(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc) throws java.io.IOException
Creates a newCachedOrdinalsReader.CachedOrds
from theBinaryDocValues
. Assumes that theBinaryDocValues
is notnull
.- Throws:
java.io.IOException
-
-