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 intoordinalsfor 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.CachedOrdsfrom theBinaryDocValues. -
Method Summary
Modifier and TypeMethodDescriptionlongReturn 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, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
offsets
public final int[] offsetsIndex intoordinalsfor each document. -
ordinals
public final int[] ordinalsHolds ords for all docs.
-
-
Constructor Details
-
CachedOrds
Creates a newCachedOrdinalsReader.CachedOrdsfrom theBinaryDocValues. Assumes that theBinaryDocValuesis notnull.- Throws:
IOException
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-