|
33 | 33 | public class BeaconConfig {
|
34 | 34 |
|
35 | 35 | /*
|
| 36 | + * This file is used in an example to demonstrate complex queries |
| 37 | + * you can perform using beacons. |
| 38 | + * The example data used is for demonstrative purposes only, |
| 39 | + * and might not meet the distribution and correlation uniqueness |
| 40 | + * recommendations for beacons. |
| 41 | + * See our documentation for whether beacons are |
| 42 | + * right for your particular data set: |
| 43 | + * https://docs.aws.amazon.com/database-encryption-sdk/latest/devguide/searchable-encryption.html#are-beacons-right-for-me |
| 44 | + * |
36 | 45 | * This file sets up all the searchable encryption configuration required to execute the examples from
|
37 | 46 | * our workshop using the encryption client.
|
38 | 47 | */
|
@@ -503,16 +512,16 @@ public static DynamoDbClient SetupBeaconConfig(String ddbTableName, String branc
|
503 | 512 | // and add constructors with general conditions at the end of the list. This would allow a given
|
504 | 513 | // item would trigger the constructor most specific to its attributes.
|
505 | 514 | List<Constructor> pk0ConstructorList = new ArrayList<>();
|
| 515 | + pk0ConstructorList.add(employeeIdConstructor); |
506 | 516 | pk0ConstructorList.add(buildingConstructor);
|
507 | 517 | pk0ConstructorList.add(ticketNumberConstructor);
|
508 | 518 | pk0ConstructorList.add(projectNameConstructor);
|
509 |
| - pk0ConstructorList.add(employeeIdConstructor); |
510 | 519 |
|
511 | 520 | List<Constructor> sk0ConstructorList = new ArrayList<>();
|
512 | 521 | sk0ConstructorList.add(ticketModTimeConstructor);
|
513 | 522 | sk0ConstructorList.add(meetingStartFloorRoomConstructor);
|
514 |
| - sk0ConstructorList.add(projectNameConstructor); |
515 | 523 | sk0ConstructorList.add(timeCardStartEmployeeEmailConstructor);
|
| 524 | + sk0ConstructorList.add(projectNameConstructor); |
516 | 525 | sk0ConstructorList.add(employeeIdConstructor);
|
517 | 526 |
|
518 | 527 | List<Constructor> pk1ConstructorList = new ArrayList<>();
|
|
0 commit comments