Module org.apache.lucene.facet
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
FieldsModifier 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
ConstructorsConstructorDescriptionCachedOrds
(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc) Creates a newCachedOrdinalsReader.CachedOrds
from theBinaryDocValues
. -
Method Summary
Modifier and TypeMethodDescriptionlong
Return the memory usage of this object in bytes.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()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-