-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
38 changes: 19 additions & 19 deletions
38
...in/java/com/linkedin/venice/spark/input/pubsub/clients/VenicePubsubPartitionConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.linkedin.venice.spark.input.pubsub.clients; | ||
|
||
import com.linkedin.venice.pubsub.PubSubTopicRepository; | ||
import com.linkedin.venice.pubsub.adapter.kafka.admin.ApacheKafkaAdminAdapter; | ||
import com.linkedin.venice.pubsub.adapter.kafka.consumer.ApacheKafkaConsumerAdapter; | ||
import com.linkedin.venice.spark.input.pubsub.table.VenicePubsubInputPartition; | ||
import java.util.Properties; | ||
|
||
//import com.linkedin.venice.pubsub.PubSubTopicRepository; | ||
//import com.linkedin.venice.pubsub.adapter.kafka.admin.ApacheKafkaAdminAdapter; | ||
//import com.linkedin.venice.pubsub.adapter.kafka.consumer.ApacheKafkaConsumerAdapter; | ||
//import com.linkedin.venice.spark.input.pubsub.table.VenicePubsubInputPartition; | ||
//import java.util.Properties; | ||
|
||
public class VenicePubsubPartitionConsumer { | ||
private final Properties configBag; | ||
private final VenicePubsubInputPartition inputPartition; | ||
private final PubSubTopicRepository pubSubTopicRepository = new PubSubTopicRepository(); | ||
private ApacheKafkaConsumerAdapter consumer; | ||
private ApacheKafkaAdminAdapter admin; | ||
|
||
public VenicePubsubPartitionConsumer(Properties configBag, VenicePubsubInputPartition inputPartition) { | ||
this.configBag = configBag; | ||
this.inputPartition = inputPartition; | ||
String consumerName = "VeniceSpark_p-" + inputPartition.getPartitionNumber() + "_" | ||
+ inputPartition.getSegmentStartOffset() + "-" + inputPartition.getSegmentEndOffset(); | ||
|
||
} | ||
// potentially future home of consumer if we decide to factor it out of the VenicePubsubPartitionReader | ||
|
||
// private final Properties configBag; | ||
// private final VenicePubsubInputPartition inputPartition; | ||
// private final PubSubTopicRepository pubSubTopicRepository = new PubSubTopicRepository(); | ||
// private ApacheKafkaConsumerAdapter consumer; | ||
// private ApacheKafkaAdminAdapter admin; | ||
// | ||
// public VenicePubsubPartitionConsumer(Properties configBag, VenicePubsubInputPartition inputPartition) { | ||
// this.configBag = configBag; | ||
// this.inputPartition = inputPartition; | ||
// String consumerName = "VeniceSpark_p-" + inputPartition.getPartitionNumber() + "_" | ||
// + inputPartition.getSegmentStartOffset() + "-" + inputPartition.getSegmentEndOffset(); | ||
// | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters