Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[_transactions2] Part 26: Make TPM#rangeMapView() visible (#3789)
Browse files Browse the repository at this point in the history
* make TPM#rangeMapView() visible

* [no release notes]
  • Loading branch information
jeremyk-91 authored Feb 28, 2019
1 parent 3698274 commit 8e70dd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public abstract class TimestampPartitioningMap<T> {
@Value.Parameter
abstract Set<RangeAndValue<T>> timestampMappings();

// Visible for internal clients.
@Value.Lazy
RangeMap<Long, T> rangeMapView() {
public RangeMap<Long, T> rangeMapView() {
ImmutableRangeMap.Builder<Long, T> builder = new ImmutableRangeMap.Builder<>();
timestampMappings()
.forEach(rangeAndValue -> builder.put(rangeAndValue.longRange(), rangeAndValue.value()));
Expand Down

0 comments on commit 8e70dd5

Please sign in to comment.