Skip to content

Commit bf8bd2c

Browse files
author
flow-php
committed
1 parent 751f59d commit bf8bd2c

File tree

13 files changed

+35
-772
lines changed

13 files changed

+35
-772
lines changed

changelog/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,11 @@ <h2 class="my-2 text-2xl font-semibold tracking-wide">Loads</h2>
218218
</div>
219219

220220
<section id="changelog" class="py-10 px-2 sm:px-4 mx-auto max-w-screen-xl">
221-
<h2><a id="flow-php-unreleased---2025-10-22" href="#content-unreleased---2025-10-22" class="mr-2" aria-hidden="true" title="Permalink">#</a>[Unreleased] - 2025-10-22</h2>
221+
<h2><a id="flow-php-unreleased---2025-10-24" href="#content-unreleased---2025-10-24" class="mr-2" aria-hidden="true" title="Permalink">#</a>[Unreleased] - 2025-10-24</h2>
222222
<h3><a id="flow-php-added" href="#content-added" class="mr-2" aria-hidden="true" title="Permalink">#</a>Added</h3>
223223
<ul>
224+
<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1901">#1901</a> - <strong>DataFrame::batchBy()</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
225+
<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1901">#1901</a> - <strong>SortedByConstraint</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
224226
<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1898">#1898</a> - <strong>3rd level of nesting to examples - Topic / Example / Option</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
225227
<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1898">#1898</a> - <strong>Examples of reusable Transformations</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
226228
<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1882">#1882</a> - <strong>Reusable action to setup php version in github workflows</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>

data_frame/batch_by/index.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ <h2 class="text-xl mt-5">Description</h2>
371371

372372
declare(strict_types=1);
373373

374-
use function Flow\ETL\DSL\{data_frame, from_array, to_stream};
374+
use function Flow\ETL\DSL\{constraint_sorted_by, data_frame, from_array, ref, to_stream};
375375

376376
require __DIR__ . &#039;/vendor/autoload.php&#039;;
377377

@@ -383,11 +383,35 @@ <h2 class="text-xl mt-5">Description</h2>
383383
[&#039;order_id&#039; =&gt; 2, &#039;item&#039; =&gt; &#039;Gizmo&#039;, &#039;qty&#039; =&gt; 3],
384384
[&#039;order_id&#039; =&gt; 3, &#039;item&#039; =&gt; &#039;Widget&#039;, &#039;qty&#039; =&gt; 1],
385385
]))
386+
-&gt;constrain(constraint_sorted_by(ref(&#039;order_id&#039;)))
386387
-&gt;batchBy(&#039;order_id&#039;)
387388
-&gt;write(to_stream(__DIR__ . &#039;/output.txt&#039;, truncate: false))
388389
-&gt;run();
389390
</code></pre></div> </div>
390391

392+
<h2 class="text-xl mt-5 mb-5">Output</h2>
393+
<div id="output" class="relative">
394+
<button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#output" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 shadow-2xl shadow-gray rounded border-gray border-2"><code id="output" class="language-shell overflow-auto" data-controller="syntax-highlight">+----------+--------+-----+
395+
| order_id | item | qty |
396+
+----------+--------+-----+
397+
| 1 | Widget | 2 |
398+
| 1 | Gadget | 1 |
399+
+----------+--------+-----+
400+
2 rows
401+
+----------+--------+-----+
402+
| order_id | item | qty |
403+
+----------+--------+-----+
404+
| 2 | Widget | 5 |
405+
| 2 | Gizmo | 3 |
406+
+----------+--------+-----+
407+
2 rows
408+
+----------+--------+-----+
409+
| order_id | item | qty |
410+
+----------+--------+-----+
411+
| 3 | Widget | 1 |
412+
+----------+--------+-----+
413+
1 rows
414+
</code></pre> </div>
391415

392416
<div class="mt-5">
393417
<script src="https://giscus.app/client.js"

documentation/api/core/classes/Flow-ETL-Transformer-GroupToArrayTransformer.html

Lines changed: 0 additions & 459 deletions
This file was deleted.

documentation/api/core/files/src-core-etl-src-flow-etl-transformer-grouptoarraytransformer.html

Lines changed: 0 additions & 288 deletions
This file was deleted.

documentation/api/core/indices/files.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ <h3>G</h3>
308308
<li><a href="files/src-core-etl-src-flow-etl-function-greatest.html"><abbr title="src/core/etl/src/Flow/ETL/Function/Greatest.php">Greatest.php</abbr></a></li>
309309
<li><a href="files/src-core-etl-src-flow-etl-groupby.html"><abbr title="src/core/etl/src/Flow/ETL/GroupBy.php">GroupBy.php</abbr></a></li>
310310
<li><a href="files/src-core-etl-src-flow-etl-pipeline-groupbypipeline.html"><abbr title="src/core/etl/src/Flow/ETL/Pipeline/GroupByPipeline.php">GroupByPipeline.php</abbr></a></li>
311-
<li><a href="files/src-core-etl-src-flow-etl-transformer-grouptoarraytransformer.html"><abbr title="src/core/etl/src/Flow/ETL/Transformer/GroupToArrayTransformer.php">GroupToArrayTransformer.php</abbr></a></li>
312311
<li><a href="files/src-core-etl-src-flow-etl-dataframe-groupeddataframe.html"><abbr title="src/core/etl/src/Flow/ETL/DataFrame/GroupedDataFrame.php">GroupedDataFrame.php</abbr></a></li>
313312
</ul>
314313
<h3>H</h3>

documentation/api/core/js/searchIndex.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11775,21 +11775,6 @@ Search.appendIndex(
1177511775
"name": "transform",
1177611776
"summary": "",
1177711777
"url": "classes/Flow-ETL-Transformer-EntryNameStyleConverterTransformer.html#method_transform"
11778-
}, {
11779-
"fqsen": "\\Flow\\ETL\\Transformer\\GroupToArrayTransformer",
11780-
"name": "GroupToArrayTransformer",
11781-
"summary": "",
11782-
"url": "classes/Flow-ETL-Transformer-GroupToArrayTransformer.html"
11783-
}, {
11784-
"fqsen": "\\Flow\\ETL\\Transformer\\GroupToArrayTransformer\u003A\u003A__construct\u0028\u0029",
11785-
"name": "__construct",
11786-
"summary": "",
11787-
"url": "classes/Flow-ETL-Transformer-GroupToArrayTransformer.html#method___construct"
11788-
}, {
11789-
"fqsen": "\\Flow\\ETL\\Transformer\\GroupToArrayTransformer\u003A\u003Atransform\u0028\u0029",
11790-
"name": "transform",
11791-
"summary": "",
11792-
"url": "classes/Flow-ETL-Transformer-GroupToArrayTransformer.html#method_transform"
1179311778
}, {
1179411779
"fqsen": "\\Flow\\ETL\\Transformer\\JoinEachRowsTransformer",
1179511780
"name": "JoinEachRowsTransformer",

0 commit comments

Comments
 (0)