Module ets
A limited implementation of the Erlang/OTP ets
module.
Data Types
access_type()
access_type() = private | protected | public
option()
option() = table_type() | {keypos, non_neg_integer()} | access_type()
options()
options() = [option()]
table()
abstract datatype: table()
table_type()
table_type() = set
Function Index
delete/2 | Delete an entry from an ets table. |
insert/2 | Insert an entry into an ets table. |
lookup/2 | Look up an entry in an ets table. |
lookup_element/3 | Look up an element from an entry in an ets table. |
new/2 | Create a new ets table. |
Function Details
delete/2
delete(Table::table(), Key::term()) -> true
Table
: a reference to the ets tableKey
: the key used to lookup one or more entries to delete
returns: true; otherwise, an error is raised if arguments are bad
Delete an entry from an ets table.
insert/2
insert(Table::table(), Entry::tuple()) -> true
Table
: a reference to the ets tableEntry
: the entry to insert
returns: true; otherwise, an error is raised if arguments are bad
Insert an entry into an ets table.
lookup/2
lookup(Table::table(), Key::term()) -> [tuple()]
Table
: a reference to the ets tableKey
: the key used to lookup one or more entries
returns: the entry in a set, or a list of entries, if the table permits
Look up an entry in an ets table.
lookup_element/3
lookup_element(Table::table(), Key::term(), Pos::pos_integer()) -> term()
Table
: a reference to the ets tableKey
: the key used to lookup one or more entriesPos
: index of the element to retrieve (1-based)
returns: the Pos:nth element of entry in a set, or a list of entries, if the table permits
Look up an element from an entry in an ets table.
new/2
new(Name::atom(), Options::options()) -> table()
Name
: the ets table nameOptions
: the options used to create the table
returns: A new ets table
Create a new ets table.