MCPcopy Create free account
hub / github.com/apache/arrow / MakeEnumeratedGenerator

Function MakeEnumeratedGenerator

cpp/src/arrow/util/async_generator.h:1677–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675/// This generator buffers one item (so it knows which item is the last item)
1676template <typename T>
1677AsyncGenerator<Enumerated<T>> MakeEnumeratedGenerator(AsyncGenerator<T> source) {
1678 return FutureFirstGenerator<Enumerated<T>>(
1679 source().Then([source](const T& initial_value) -> AsyncGenerator<Enumerated<T>> {
1680 return EnumeratingGenerator<T>(std::move(source), initial_value);
1681 }));
1682}
1683
1684/// \see MakeTransferredGenerator
1685template <typename T>

Callers 3

FragmentToBatchesFunction · 0.85
FragmentsToBatchesFunction · 0.85
TEST_PFunction · 0.85

Calls 1

ThenMethod · 0.80

Tested by 1

TEST_PFunction · 0.68