Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv final Class PgmIndexUtil

extends Object
Class Inheritance

Utility methods for KTypePgmIndex.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
addIntercept(long intercept, IntArrayList segmentData, int
The size of the key, measure in Integer#BYTES.
keySize
)

Adds the intercept of the current segment to the segment data bytes.

pack-priv static <KType> void
addKey(KType key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

pack-priv static void
addKey(int key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

pack-priv static void
addKey(float key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

pack-priv static void
addKey(long key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

pack-priv static void
addKey(double key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

pack-priv static void
addSlope(double slope, IntArrayList segmentData, int
The size of the key, measure in Integer#BYTES.
keySize
)

Adds the slope of the current segment to the segment data bytes.

pack-priv static long
getIntercept(int segmentDataIndex, int[] segmentData, int
The size of the key, measure in Integer#BYTES.
keySize
)

Gets the intercept of the segment at the given data index.

pack-priv static <KType> KType
getKey(int segmentDataIndex, int[] segmentData, KType keyType)

Gets the first key of the segment at the given data index.

pack-priv static int
getKey(int segmentDataIndex, int[] segmentData, int keyType)

Gets the first key of the segment at the given data index.

pack-priv static float
getKey(int segmentDataIndex, int[] segmentData, float keyType)

Gets the first key of the segment at the given data index.

pack-priv static long
getKey(int segmentDataIndex, int[] segmentData, long keyType)

Gets the first key of the segment at the given data index.

pack-priv static double
getKey(int segmentDataIndex, int[] segmentData, double keyType)

Gets the first key of the segment at the given data index.

pack-priv static double
getSlope(int segmentDataIndex, int[] segmentData, int
The size of the key, measure in Integer#BYTES.
keySize
)

Gets the slope of the segment at the given data index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PgmIndexUtilback to summary
pack-priv PgmIndexUtil()

Method Detail

addInterceptback to summary
pack-priv static void addIntercept(long intercept, IntArrayList segmentData, int keySize)

Adds the intercept of the current segment to the segment data bytes. The intercept is stored as an int for a key size equal to 1, otherwise it is stored as a long.

Parameters
keySize:int

The size of the key, measure in Integer#BYTES.

addKeyback to summary
pack-priv static <KType> void addKey(KType key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

addKeyback to summary
pack-priv static void addKey(int key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

addKeyback to summary
pack-priv static void addKey(float key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

addKeyback to summary
pack-priv static void addKey(long key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

addKeyback to summary
pack-priv static void addKey(double key, IntArrayList segmentData)

Adds the first key of the current segment to the segment data bytes.

addSlopeback to summary
pack-priv static void addSlope(double slope, IntArrayList segmentData, int keySize)

Adds the slope of the current segment to the segment data bytes. The intercept is stored as a float for a key size equal to 1, otherwise it is stored as a double.

Parameters
keySize:int

The size of the key, measure in Integer#BYTES.

getInterceptback to summary
pack-priv static long getIntercept(int segmentDataIndex, int[] segmentData, int keySize)

Gets the intercept of the segment at the given data index.

Parameters
keySize:int

The size of the key, measure in Integer#BYTES.

getKeyback to summary
pack-priv static <KType> KType getKey(int segmentDataIndex, int[] segmentData, KType keyType)

Gets the first key of the segment at the given data index.

getKeyback to summary
pack-priv static int getKey(int segmentDataIndex, int[] segmentData, int keyType)

Gets the first key of the segment at the given data index.

getKeyback to summary
pack-priv static float getKey(int segmentDataIndex, int[] segmentData, float keyType)

Gets the first key of the segment at the given data index.

getKeyback to summary
pack-priv static long getKey(int segmentDataIndex, int[] segmentData, long keyType)

Gets the first key of the segment at the given data index.

getKeyback to summary
pack-priv static double getKey(int segmentDataIndex, int[] segmentData, double keyType)

Gets the first key of the segment at the given data index.

getSlopeback to summary
pack-priv static double getSlope(int segmentDataIndex, int[] segmentData, int keySize)

Gets the slope of the segment at the given data index.

Parameters
keySize:int

The size of the key, measure in Integer#BYTES.