Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,6 @@ public interface MergingTriggerInfo extends TriggerInfo {

/** Return true if the trigger is finished in all windows being merged. */
public abstract boolean finishedInAllMergingWindows();

/** Return the merging windows in which the trigger is finished. */
public abstract Iterable<? extends BoundedWindow> getFinishedMergingWindows();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Maps;

import org.joda.time.Instant;

Expand Down Expand Up @@ -249,16 +248,6 @@ public boolean finishedInAllMergingWindows() {
}
return true;
}

@Override
public Iterable<? extends BoundedWindow> getFinishedMergingWindows() {
return Maps.filterValues(finishedSets, new Predicate<FinishedTriggers>() {
@Override
public boolean apply(FinishedTriggers finishedSet) {
return finishedSet.isFinished(trigger);
}
}).keySet();
}
}

private class StateAccessorImpl implements StateAccessor<Object> {
Expand Down