Skip to content

Commit 7a3fc53

Browse files
committed
First Read/Write: Flush Type
1 parent f779125 commit 7a3fc53

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/source/usage/firstread.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ C++11
8989
"data%T.h5",
9090
api::AccessType::READ_ONLY);
9191
92+
// optional: accumulate heavy load
93+
// operations until .flush()
94+
// series.setFlush(api::FlushType::DEFER);
9295
9396
Python
9497
^^^^^^
@@ -99,6 +102,10 @@ Python
99102
"data%T.h5",
100103
api.Access_Type.read_only)
101104
105+
# optional: accumulate heavy load
106+
# operations until .flush()
107+
# series.set_flush(api.Flush_Type.defer)
108+
102109
Iteration
103110
---------
104111

@@ -268,6 +275,11 @@ Python
268275
269276
series.flush()
270277
278+
.. note::
279+
280+
You can *skip this step* if your series flush mode is *not* ``FlushType::DEFER``/``Flush_Type.defer``.
281+
With the convenient default (``FlushType::DIRECT``/``Flush_Type.direct``), we call ``flush()`` implicitly in ``load_chunk()``.
282+
271283
Data
272284
-----
273285

docs/source/usage/firstwrite.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ C++11
8787
"myOutput/data_%05T.h5",
8888
api::AccessType::CREATE);
8989
90+
// optional: accumulate heavy store
91+
// operations until .flush()
92+
// series.setFlush(api::FlushType::DEFER);
9093
9194
Python
9295
^^^^^^
@@ -97,6 +100,10 @@ Python
97100
"myOutput/data_%05T.h5",
98101
api.Access_Type.create)
99102
103+
# optional: accumulate heavy store
104+
# operations until .flush()
105+
# series.set_flush(api.Flush_Type.defer)
106+
100107
Iteration
101108
---------
102109

@@ -340,6 +347,11 @@ Python
340347
341348
series.flush()
342349
350+
.. note::
351+
352+
You can *skip this step* if your series flush mode is *not* ``FlushType::DEFER``/``Flush_Type.defer``.
353+
With the convenient default (``FlushType::DIRECT``/``Flush_Type.direct``), we call ``flush()`` implicitly in ``store_chunk()``.
354+
343355
Close
344356
-----
345357

0 commit comments

Comments
 (0)