use of com.palantir.example.profile.schema.generated.UserProfileTable in project atlasdb by palantir.
the class ProfileStore method getUserData.
public UserProfile getUserData(UUID userId) {
UserProfileTable table = tables.getUserProfileTable(tx);
Map<UserProfileRow, UserProfile> result = table.getMetadatas(ImmutableSet.of(UserProfileRow.of(userId)));
if (result.isEmpty()) {
return null;
} else {
return Iterables.getOnlyElement(result.values());
}
}
Aggregations