robertwb commented on code in PR #34746: URL: https://github.com/apache/beam/pull/34746#discussion_r2060942319
########## sdks/java/harness/src/main/java/org/apache/beam/fn/harness/state/StateFetchingIterators.java: ########## @@ -91,6 +94,82 @@ public static <T> CachingStateIterable<T> readAllAndDecodeStartingFrom( valueCoder); } + public static <T> UncachedStateIterable<T> readAllAndDecodeStartingFrom( + BeamFnStateClient beamFnStateClient, + StateRequest stateRequestForFirstChunk, + Coder<T> valueCoder) { + return new UncachedStateIterable<>(beamFnStateClient, stateRequestForFirstChunk, valueCoder); + } + + static class UncachedStateIterable<T> extends PrefetchableIterables.Default<T> { Review Comment: If this isn't used for state anywhere (I don't think it is) we probably don't even need to use the Prefethable* interfaces at all, simplifying things further. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org