Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
APEXMALHAR-2497 APEXMALHAR-2162 1) Refactor the Exactly Once output o…
Browse files Browse the repository at this point in the history
…perator. 2) Refactor and fix the issues of unit tests.
  • Loading branch information
chaithu14 committed Nov 10, 2017
1 parent 9090578 commit 15d2903
Show file tree
Hide file tree
Showing 26 changed files with 1,821 additions and 2,337 deletions.
13 changes: 13 additions & 0 deletions examples/sql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.apex</groupId>
<artifactId>malhar-kafka-common</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.apache.kafka.clients.consumer.OffsetCommitCallback;
import org.apache.kafka.common.Metric;
import org.apache.kafka.common.MetricName;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;

/**
Expand All @@ -53,7 +54,7 @@ public interface AbstractKafkaConsumer
* @param timeOut time in milliseconds, spent waiting in poll if data is not available in buffer.
* @return records
*/
ConsumerRecords<byte[], byte[]> pollRecords(long timeOut);
ConsumerRecords pollRecords(long timeOut);

/**
* Commit the specified offsets for the specified list of topics and partitions to Kafka.
Expand Down Expand Up @@ -124,4 +125,6 @@ public interface AbstractKafkaConsumer
* @param tp partition
*/
long positionPartition(TopicPartition tp);

List<PartitionInfo> partitionsFor(String topic);
}
Loading

0 comments on commit 15d2903

Please sign in to comment.