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
public static final class CachedOrdinalsReader.CachedOrds extends Object implements Accountable
Holds the cached ordinals in two parallelint[]arrays.
-
-
Field Summary
Fields Modifier and Type Field Description int[]offsetsIndex intoordinalsfor each document.int[]ordinalsHolds ords for all docs.-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description CachedOrds(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc)Creates a newCachedOrdinalsReader.CachedOrdsfrom theBinaryDocValues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longramBytesUsed()-
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 Detail
-
offsets
public final int[] offsets
Index intoordinalsfor each document.
-
ordinals
public final int[] ordinals
Holds ords for all docs.
-
-
Constructor Detail
-
CachedOrds
public CachedOrds(OrdinalsReader.OrdinalsSegmentReader source, int maxDoc) throws IOException
Creates a newCachedOrdinalsReader.CachedOrdsfrom theBinaryDocValues. Assumes that theBinaryDocValuesis notnull.- Throws:
IOException
-
-
Method Detail
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsedin interfaceAccountable
-
-