public class Partitions
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static Partition[] | EMPTY_PARTITIONSAn empty array of partitions. | 
| Modifier and Type | Method and Description | 
|---|---|
| static IdentityPartition | identity(java.lang.String[][] fieldNames,
        Literal<?>[] values)Creates an identity partition whose name will be automatically generated. | 
| static IdentityPartition | identity(java.lang.String name,
        java.lang.String[][] fieldNames,
        Literal<?>[] values,
        java.util.Map<java.lang.String,java.lang.String> properties)Creates an identity partition. | 
| static ListPartition | list(java.lang.String name,
    Literal<?>[][] lists,
    java.util.Map<java.lang.String,java.lang.String> properties)Creates a list partition. | 
| static RangePartition | range(java.lang.String name,
     Literal<?> upper,
     Literal<?> lower,
     java.util.Map<java.lang.String,java.lang.String> properties)Creates a range partition. | 
public static Partition[] EMPTY_PARTITIONS
public static RangePartition range(java.lang.String name, Literal<?> upper, Literal<?> lower, java.util.Map<java.lang.String,java.lang.String> properties)
name - The name of the partition.upper - The upper bound of the partition.lower - The lower bound of the partition.properties - The properties of the partition.public static ListPartition list(java.lang.String name, Literal<?>[][] lists, java.util.Map<java.lang.String,java.lang.String> properties)
name - The name of the partition.lists - The values of the list partition.properties - The properties of the partition.public static IdentityPartition identity(java.lang.String name, java.lang.String[][] fieldNames, Literal<?>[] values, java.util.Map<java.lang.String,java.lang.String> properties)
The values must correspond to the fieldNames.
name - The name of the partition.fieldNames - The field names of the identity partition.values - The value of the identity partition.properties - The properties of the partition.public static IdentityPartition identity(java.lang.String[][] fieldNames, Literal<?>[] values)
fieldNames - The field names of the identity partition.values - The values of the identity partition.