Package com.bayesserver.data
Class DataPartitioning
- java.lang.Object
-
- com.bayesserver.data.DataPartitioning
-
public final class DataPartitioning extends Object
Determines how data is partitioned.
-
-
Constructor Summary
Constructors Constructor Description DataPartitioning(int partitionNumber, DataPartitionMethod method, int partitionCount)Initializes a new instance of theDataPartitioningclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataPartitionMethodgetMethod()Gets the partitioning method.intgetPartitionCount()Gets the total number of partitions.intgetPartitionNumber()Gets the zero based partition number.
-
-
-
Constructor Detail
-
DataPartitioning
public DataPartitioning(int partitionNumber, DataPartitionMethod method, int partitionCount)Initializes a new instance of theDataPartitioningclass.- Parameters:
partitionNumber- The zero based partition number. A number between 0 to (number of partitions - 1).method- The partitioning method. E.g. whether to include or exclude the data in the partition.partitionCount- The total number of partitions.
-
-
Method Detail
-
getPartitionNumber
public int getPartitionNumber()
Gets the zero based partition number. A number between 0 to (number of partitions - 1).
-
getPartitionCount
public int getPartitionCount()
Gets the total number of partitions.
-
getMethod
public DataPartitionMethod getMethod()
Gets the partitioning method. E.g. whether to include or exclude the data in the partition.
-
-