Package org.apache.lucene.facet.taxonomy
Class CachedOrdinalsReader.CachedOrds
java.lang.Object
org.apache.lucene.facet.taxonomy.CachedOrdinalsReader.CachedOrds
- All Implemented Interfaces:
Accountable
- Enclosing class:
CachedOrdinalsReader
Holds the cached ordinals in two parallel
int[]
arrays.-
Field Summary
Modifier and TypeFieldDescriptionfinal int[]
Index intoordinals
for each document.final int[]
Holds ords for all docs.Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
ConstructorDescriptionCachedOrds
(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc) Creates a newCachedOrdinalsReader.CachedOrds
from theBinaryDocValues
. -
Method Summary
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.Accountable
getChildResources
-
Field Details
-
offsets
public final int[] offsetsIndex intoordinals
for each document. -
ordinals
public final int[] ordinalsHolds ords for all docs.
-
-
Constructor Details
-
CachedOrds
Creates a newCachedOrdinalsReader.CachedOrds
from theBinaryDocValues
. Assumes that theBinaryDocValues
is notnull
.- Throws:
IOException
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsed
in interfaceAccountable
-