private static class OrdinalMap.SegmentMap extends java.lang.Object implements Accountable
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_RAM_BYTES_USED |
private int[] |
newToOld |
private int[] |
oldToNew |
Constructor and Description |
---|
SegmentMap(long[] weights) |
Modifier and Type | Method and 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) int |
newToOld(int segment) |
(package private) int |
oldToNew(int segment) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
private static final long BASE_RAM_BYTES_USED
private final int[] newToOld
private final int[] oldToNew
private static int[] map(long[] weights)
private static int[] inverse(int[] map)
int newToOld(int segment)
int oldToNew(int segment)
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable