Commit 6327aab
authored
Multimap streaming (#36714)
* Changes multimap state key() tests to not care about order. There is no guarantee on the order keys are returned. Also fixes a couple warnings from other FnApi tests.
* Adds Multimap user state support to the Java FnApi harness. Also adds a missing FnApi state proto to get all of the entries of a multimap. This type of access is part of the state API (and supported by the non-portable harness), but was not present in the protos.
* Adds FnApi binding for entries() method.
* Removes extra unchecked warning supression. I had added it because it turned my entire file in IntelliJ yellow.
* Removes extra comma.
* Removes not-needed @nonnull annotations.
* Update FnApiStateAccessor.java
Removes non-needed @nonnull annotations.
* Changes multimap entries() iterable to put values for the same key from the backend and local adds together. Also needed to make maybePrefetchable public.
* Adds a test that prefetching multimap entries results in a StateRequest sent across FnApi.
* Adds an environment capability for multimap state and sets in for the java sdk.
* Removes checks for persistent state types that are now supported.1 parent 89947fd commit 6327aab
File tree
2 files changed
+81
-33
lines changed- runners/google-cloud-dataflow-java/src
- main/java/org/apache/beam/runners/dataflow
- test/java/org/apache/beam/runners/dataflow
2 files changed
+81
-33
lines changedLines changed: 3 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
| |||
1191 | 1188 | | |
1192 | 1189 | | |
1193 | 1190 | | |
1194 | | - | |
| 1191 | + | |
1195 | 1192 | | |
1196 | 1193 | | |
1197 | 1194 | | |
| |||
2212 | 2209 | | |
2213 | 2210 | | |
2214 | 2211 | | |
2215 | | - | |
| 2212 | + | |
2216 | 2213 | | |
2217 | 2214 | | |
2218 | 2215 | | |
| |||
2625 | 2622 | | |
2626 | 2623 | | |
2627 | 2624 | | |
2628 | | - | |
| 2625 | + | |
2629 | 2626 | | |
2630 | 2627 | | |
2631 | 2628 | | |
| |||
2732 | 2729 | | |
2733 | 2730 | | |
2734 | 2731 | | |
2735 | | - | |
2736 | | - | |
2737 | | - | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
2741 | 2732 | | |
2742 | 2733 | | |
2743 | 2734 | | |
2744 | 2735 | | |
2745 | 2736 | | |
2746 | 2737 | | |
2747 | 2738 | | |
2748 | | - | |
2749 | | - | |
2750 | | - | |
2751 | | - | |
2752 | | - | |
2753 | | - | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
2757 | | - | |
2758 | | - | |
2759 | | - | |
2760 | | - | |
2761 | | - | |
2762 | | - | |
2763 | | - | |
2764 | | - | |
2765 | | - | |
2766 | | - | |
2767 | 2739 | | |
2768 | 2740 | | |
2769 | 2741 | | |
| |||
Lines changed: 78 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
2511 | 2516 | | |
2512 | 2517 | | |
2513 | 2518 | | |
2514 | | - | |
| 2519 | + | |
2515 | 2520 | | |
2516 | 2521 | | |
2517 | 2522 | | |
| |||
2522 | 2527 | | |
2523 | 2528 | | |
2524 | 2529 | | |
2525 | | - | |
| 2530 | + | |
2526 | 2531 | | |
2527 | 2532 | | |
2528 | 2533 | | |
| |||
2684 | 2689 | | |
2685 | 2690 | | |
2686 | 2691 | | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
2687 | 2763 | | |
0 commit comments