java.lang.Object
org.apache.lucene.index.OrdinalMap.SegmentMap
- All Implemented Interfaces:
Accountable
- Enclosing class:
OrdinalMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final int[]
private final int[]
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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) int
newToOld
(int segment) (package private) int
oldToNew
(int segment) long
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
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
newToOld
private final int[] newToOld -
oldToNew
private final int[] oldToNew
-
-
Constructor Details
-
SegmentMap
SegmentMap(long[] weights)
-
-
Method Details
-
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:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-