Skip to content

Commit

Permalink
[hotfix] Making arguments in BroadcastProcessFunction final.
Browse files Browse the repository at this point in the history
  • Loading branch information
kl0u committed Apr 23, 2018
1 parent d519eb7 commit fb25476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class BaseContext {
* @param outputTag the {@code OutputTag} that identifies the side output to emit to.
* @param value The record to emit.
*/
public abstract <X> void output(OutputTag<X> outputTag, X value);
public abstract <X> void output(final OutputTag<X> outputTag, final X value);

/** Returns the current processing time. */
public abstract long currentProcessingTime();
Expand All @@ -81,7 +81,7 @@ public abstract class Context extends BaseContext {
* @param stateDescriptor the {@link MapStateDescriptor} of the state to be fetched.
* @return The required {@link BroadcastState broadcast state}.
*/
public abstract <K, V> BroadcastState<K, V> getBroadcastState(MapStateDescriptor<K, V> stateDescriptor);
public abstract <K, V> BroadcastState<K, V> getBroadcastState(final MapStateDescriptor<K, V> stateDescriptor);
}

/**
Expand All @@ -100,6 +100,6 @@ public abstract class ReadOnlyContext extends BaseContext {
* @param stateDescriptor the {@link MapStateDescriptor} of the state to be fetched.
* @return The required read-only view of the broadcast state.
*/
public abstract <K, V> ReadOnlyBroadcastState<K, V> getBroadcastState(MapStateDescriptor<K, V> stateDescriptor);
public abstract <K, V> ReadOnlyBroadcastState<K, V> getBroadcastState(final MapStateDescriptor<K, V> stateDescriptor);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public abstract class BroadcastProcessFunction<IN1, IN2, OUT> extends BaseBroadc
* @throws Exception The function may throw exceptions which cause the streaming program
* to fail and go into recovery.
*/
public abstract void processElement(IN1 value, ReadOnlyContext ctx, Collector<OUT> out) throws Exception;
public abstract void processElement(final IN1 value, final ReadOnlyContext ctx, final Collector<OUT> out) throws Exception;

/**
* This method is called for each element in the
Expand All @@ -89,7 +89,7 @@ public abstract class BroadcastProcessFunction<IN1, IN2, OUT> extends BaseBroadc
* @throws Exception The function may throw exceptions which cause the streaming program
* to fail and go into recovery.
*/
public abstract void processBroadcastElement(IN2 value, Context ctx, Collector<OUT> out) throws Exception;
public abstract void processBroadcastElement(final IN2 value, final Context ctx, final Collector<OUT> out) throws Exception;

/**
* A {@link BaseBroadcastProcessFunction.Context context} available to the broadcast side of
Expand Down

0 comments on commit fb25476

Please sign in to comment.