Annotation Interface PartitionBy
Specifies a partition key for fields or methods. This annotation is used to define the partitioning
value that groups or categorizes data elements.
Apply this annotation to fields or methods in classes where partitioning logic is required.
The value()
method defines the partition key as an integer.
Retention: RUNTIME
Target: FIELD
, METHOD
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionint
The partition key value for the annotated field or method.
-
Element Details
-
value
int valueThe partition key value for the annotated field or method.- Returns:
- an integer representing the partition key
-