This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Commit 0261af4
authored
feat: Add max size check to StreamWriterV2 (#873)
* Add a new StreamWriterV2.
Compared to existing StreamWriter, its locking mechanism is much
simpler.
* Stop using Java8 features as we still need to support Java7
* Do not hold lock while sending requests, and some minor refactoring.
* Add max message size check.1 parent de747ec commit 0261af4
File tree
2 files changed
+35
-3
lines changed- google-cloud-bigquerystorage/src
- main/java/com/google/cloud/bigquery/storage/v1beta2
- test/java/com/google/cloud/bigquery/storage/v1beta2
2 files changed
+35
-3
lines changedLines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
157 | 172 | | |
158 | 173 | | |
159 | 174 | | |
| |||
355 | 370 | | |
356 | 371 | | |
357 | 372 | | |
| 373 | + | |
358 | 374 | | |
359 | 375 | | |
360 | 376 | | |
361 | 377 | | |
| 378 | + | |
362 | 379 | | |
363 | 380 | | |
364 | 381 | | |
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
292 | 307 | | |
293 | 308 | | |
0 commit comments