Annotation Type ClusteringColumn
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface ClusteringColumn
Annotates the field or getter of anEntityproperty, to indicate that it's a clustering column.Example:
@ClusteringColumn private int month;
This information is used by the mapper processor to generate default queries (for example a basicSelect).If there are multiple clustering columns, you must specify
value()to indicate the position of each property:@ClusteringColumn(1) private int month; @ClusteringColumn(2) private int day;
If you don't specify positions, or if there are duplicates, the mapper processor will issue a compile-time error.This annotation is mutually exclusive with
PartitionKey.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intvalueThe position of the clustering column.
-