diff options
author | Sverker Eriksson <[email protected]> | 2017-04-03 16:56:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-04-03 16:56:29 +0200 |
commit | 0b3416203c37eba5354e284b9040799158567133 (patch) | |
tree | f0e617ec41c19a916760b60ad7786821935b31e5 /lib/stdlib/doc | |
parent | 2f166031319ec414712a8a91372ba2bc348dae7a (diff) | |
parent | eb9fc2a4361037f06991d30f697f0e3ff6394117 (diff) | |
download | otp-0b3416203c37eba5354e284b9040799158567133.tar.gz otp-0b3416203c37eba5354e284b9040799158567133.tar.bz2 otp-0b3416203c37eba5354e284b9040799158567133.zip |
Merge PR-1076 from g-andrade/feature/ets_conditional_insert OTP-14319
ETS: Allow for conditional insertions
Diffstat (limited to 'lib/stdlib/doc')
-rw-r--r-- | lib/stdlib/doc/src/ets.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml index 05401a2d40..d1ec176f81 100644 --- a/lib/stdlib/doc/src/ets.xml +++ b/lib/stdlib/doc/src/ets.xml @@ -1491,6 +1491,25 @@ is_integer(X), is_integer(Y), X + Y < 4711]]></code> </func> <func> + <name name="select_replace" arity="2"/> + <fsummary>Match and replace objects atomically in an ETS table</fsummary> + <desc> + <p>Matches the objects in the table <c><anno>Tab</anno></c> using a + <seealso marker="#match_spec">match specification</seealso>. If + an object is matched, the existing object is replaced with + the match specification result, which <em>must</em> retain + the original key or the operation will fail with <c>badarg</c>.</p> + <p>For the moment, due to performance and semantic constraints, + tables of type <c>bag</c> are not yet supported.</p> + <p>The function returns the total number of replaced objects.</p> + <note> + <p>The match/replacement operation atomicity scope is limited + to each individual object.</p> + </note> + </desc> + </func> + + <func> <name name="select_reverse" arity="1"/> <fsummary>Continue matching objects in an ETS table.</fsummary> <desc> |