Skip to content

Instantly share code, notes, and snippets.

@forcemax
Created July 21, 2015 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forcemax/5c976115be31f5e54583 to your computer and use it in GitHub Desktop.
Save forcemax/5c976115be31f5e54583 to your computer and use it in GitHub Desktop.
public final void execute(Tuple input) {
if (isTickTuple(input)) {
getLogger().debug("Received tick tuple, triggering emit of current rankings");
emitRankings(collector);
} else {
getLogger().debug("tuple : {}", input);
updateRankingsWithTuple(input);
}
collector.ack(input);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment