Skip to content

Commit

Permalink
adjusted readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oemergenc committed Mar 9, 2020
1 parent 081ed5c commit 191a0a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ Maven:
Annotate your class according to the following example:
```
public class Dependents implements Serializable {
private Integer dependId;
private String dependId;
private String anotherId;
}
@HBTable(name = "citizens", families = {@Family(name = "dependents"), @Family(name = "optional", versions = 10)})
public class Citizen implements HBRecord<String> {
private static final String ROWKEY_DELIMITER = "#";
@HBRowKey
private String citizenId;
@HBDynamicColumn(family = "dependents", qualifierField = "dependId")
@HBDynamicColumn(family = "dependents", qualifier = @DynamicQualifier(parts = {"dependId", "anotherId"}))
private List<Dependents> dependents;
...
}
```

This will automatically store all `Dependents` in the list member variable `dependents` in the hbase table `citizens` using the following column qualifiers:
This will automatically store all `Dependents` in the list member variable `dependents` in the hbase table `citizens` using the following column qualifier scheme `dependents:dependId#dependId$anotherId`:
```
- dependents:dependId#1234
- dependents:dependId#9876
- dependents:dependId#952
- dependents:dependId#9876$bcdhs123
- dependents:dependId#9529$nkj9280
```

## License
Expand Down

0 comments on commit 191a0a0

Please sign in to comment.