Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
echauchot committed Apr 5, 2018
1 parent fe535cb commit 6e046a0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,9 @@ public void processElement(ProcessContext c) {
* Send {@code events} to Kafka.
*/
private void sinkEventsToKafka(PCollection<Event> events) {
PCollection<byte[]> event_to_bytes = events.apply("Event to bytes", ParDo.of(EVENT_TO_BYTEARRAY));
event_to_bytes.apply(KafkaIO.<Void, byte[]>write()
PCollection<byte[]> eventToBytes =
events.apply("Event to bytes", ParDo.of(EVENT_TO_BYTEARRAY));
eventToBytes.apply(KafkaIO.<Void, byte[]>write()
.withBootstrapServers(options.getBootstrapServers())
.withTopic(options.getKafkaSinkTopic())
.withValueSerializer(ByteArraySerializer.class)
Expand Down

0 comments on commit 6e046a0

Please sign in to comment.