Class ShortPartitionKernel
java.lang.Object
com.illumon.iris.db.v2.sort.partition.ShortPartitionKernel
public class ShortPartitionKernel extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShortPartitionKernel.PartitionKernelContext
-
Constructor Summary
Constructors Constructor Description ShortPartitionKernel()
-
Method Summary
Modifier and Type Method Description static ShortPartitionKernel.PartitionKernelContext
createContext(Index index, ColumnSource<Short> columnSource, int chunkSize, int nPartitions, boolean preserveEquality)
static void
partition(ShortPartitionKernel.PartitionKernelContext context, LongChunk<Attributes.KeyIndices> indexKeys, ShortChunk values)
After we have created the context, we can determine what things are in a partition.
-
Constructor Details
-
ShortPartitionKernel
public ShortPartitionKernel()
-
-
Method Details
-
createContext
public static ShortPartitionKernel.PartitionKernelContext createContext(Index index, ColumnSource<Short> columnSource, int chunkSize, int nPartitions, boolean preserveEquality) -
partition
public static void partition(ShortPartitionKernel.PartitionKernelContext context, LongChunk<Attributes.KeyIndices> indexKeys, ShortChunk values)After we have created the context, we can determine what things are in a partition.- Parameters:
context
- our context, containing the pivotsindexKeys
- a chunk of index keys to partitionvalues
- a chunk of values that go with the index keys
-