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

APEXMALHAR-2497 APEXMALHAR-2162 1) Refactor the Exactly Once output operator. 2) Refactor and fix the issues of unit tests. #642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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