• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

juarezr / spark-streaming-google-pubsub / 57

01 Oct 2026 07:02AM UTC coverage: 66.187% (-2.3%) from 68.457%
57

push

github

web-flow
fix: update AutoBatchTime logic for receiveTime estimation with write-first approach (#20)

- fix: update AutoBatchTime logic for receiveTime estimation with
write-first approach
- feat: add processingTime configuration to PubSubConfig to hint batch
interval on AutoBatchTime
- fix: remove unneded cap on writeBudget for AutoBatchTime

689 of 1169 branches covered (58.94%)

Branch coverage included in aggregate %.

232 of 354 new or added lines in 12 files covered. (65.54%)

15 existing lines in 1 file now uncovered.

1517 of 2164 relevant lines covered (70.1%)

0.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.0
/src/main/java/io/github/juarezr/spark/pubsub/structured/PubSubInputPartition.java
1
package io.github.juarezr.spark.pubsub.structured;
2

3
import java.util.ArrayList;
4
import java.util.Collections;
5
import java.util.List;
6
import org.apache.spark.sql.connector.read.InputPartition;
7

8
/** One Spark task partition holding a slice of pulled Pub/Sub messages. */
9
final class PubSubInputPartition implements InputPartition {
10

11
  private static final long serialVersionUID = -190057786L;
12

13
  private final List<PulledMessage> messages;
14

15
  PubSubInputPartition(List<PulledMessage> messages) {
1 ✔
16
    this.messages =
1 ✔
17
        messages == null
1 !
18
            ? Collections.emptyList()
×
19
            : Collections.unmodifiableList(new ArrayList<>(messages));
1 ✔
20
  }
1 ✔
21

22
  @Override
23
  public String toString() {
NEW
24
    return "pubsub=" + messages.size();
×
25
  }
26

27
  List<PulledMessage> messages() {
28
    return messages;
1 ✔
29
  }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc