use of com.palantir.example.profile.schema.generated.UserProfileTable.UserProfileRow in project atlasdb by palantir.
the class ProfileStore method getPhotoStreamId.
private Long getPhotoStreamId(UUID userId) {
UserProfileTable table = tables.getUserProfileTable(tx);
Map<UserProfileRow, Long> result = table.getPhotoStreamIds(ImmutableSet.of(UserProfileRow.of(userId)));
if (result.isEmpty()) {
return null;
} else {
return Iterables.getOnlyElement(result.values());
}
}
use of com.palantir.example.profile.schema.generated.UserProfileTable.UserProfileRow 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