use of com.palantir.example.profile.schema.generated.UserProfileTable.UserBirthdaysIdxTable.UserBirthdaysIdxColumnValue in project atlasdb by palantir.
the class ProfileStore method getUsersWithBirthday.
public Set<UUID> getUsersWithBirthday(long birthEpochDays) {
UserProfileTable table = tables.getUserProfileTable(tx);
UserBirthdaysIdxTable idx = UserBirthdaysIdxTable.of(table);
List<UserBirthdaysIdxColumnValue> columns = idx.getRowColumns(UserBirthdaysIdxRow.of(birthEpochDays));
return IterableView.of(columns).transform(UserBirthdaysIdxColumnValue.getColumnNameFun()).transform(UserBirthdaysIdxColumn.getIdFun()).immutableSetCopy();
}
Aggregations