Class ObjectPartitionKernel
java.lang.Object
com.illumon.iris.db.v2.sort.partition.ObjectPartitionKernel
public class ObjectPartitionKernel extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectPartitionKernel.PartitionKernelContext
-
Constructor Summary
Constructors Constructor Description ObjectPartitionKernel()
-
Method Summary
Modifier and Type Method Description static ObjectPartitionKernel.PartitionKernelContext
createContext(Index index, ColumnSource<Object> columnSource, int chunkSize, int nPartitions, boolean preserveEquality)
static void
partition(ObjectPartitionKernel.PartitionKernelContext context, LongChunk<Attributes.KeyIndices> indexKeys, ObjectChunk values)
After we have created the context, we can determine what things are in a partition.
-
Constructor Details
-
ObjectPartitionKernel
public ObjectPartitionKernel()
-
-
Method Details
-
createContext
public static ObjectPartitionKernel.PartitionKernelContext createContext(Index index, ColumnSource<Object> columnSource, int chunkSize, int nPartitions, boolean preserveEquality) -
partition
public static void partition(ObjectPartitionKernel.PartitionKernelContext context, LongChunk<Attributes.KeyIndices> indexKeys, ObjectChunk 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
-