Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.9Mb
PDF (A4) - 4.8Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.8Mb
HTML Download (Zip) - 1.9Mb


4.3.2.10 PartitionKey

Annotation on a class or member to define the partition key. If annotating a class or interface, either a single column or multiple columns can be specified. If annotating a member, neither column nor columns should be specified.

4.3.2.10.1 Synopsis
 @Target(value={java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface PartitionKey {
  public String column ;
  public Column[] columns ;
}

Figure 4.31 PartitionKey Class

PartitionKey Class

4.3.2.10.2 column

Name of the column to use for the partition key

Parameters

return

the name of the column to use for the partition key

4.3.2.10.3 columns

The column(s) for the partition key

Parameters

return

the column(s) for the partition key


User Comments
Sign Up Login You must be logged in to post a comment.