Package org.apache.lucene.index
Class OrdinalMap.SegmentMap
- java.lang.Object
-
- org.apache.lucene.index.OrdinalMap.SegmentMap
-
- All Implemented Interfaces:
Accountable
- Enclosing class:
- OrdinalMap
private static class OrdinalMap.SegmentMap extends java.lang.Object implements Accountable
-
-
Field Summary
Fields Modifier and Type Field Description private static longBASE_RAM_BYTES_USEDprivate int[]newToOldprivate int[]oldToNew-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description SegmentMap(long[] weights)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int[]inverse(int[] map)Inverse the map.private static int[]map(long[] weights)Build a map from an index into a sorted view of `weights` to an index into `weights`.(package private) intnewToOld(int segment)(package private) intoldToNew(int segment)longramBytesUsed()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
-
-
-
-
Method Detail
-
map
private static int[] map(long[] weights)
Build a map from an index into a sorted view of `weights` to an index into `weights`.
-
inverse
private static int[] inverse(int[] map)
Inverse the map.
-
newToOld
int newToOld(int segment)
-
oldToNew
int oldToNew(int segment)
-
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
-
-