close/1 | Close a tcerl database. |
first/1 | Get the first key in the database. |
get/2 | Get (possibly multiple) values associated with a Key. |
info/1 | Returns information about the data store. |
is_tcbdb_file/1 | Returns true if file Filename is a tcbdb file, false otherwise. |
last/1 | Get the last key in the database. |
next/2 | Get the next key in the database. |
open/2 | Open a tcerl database. |
out/2 | Delete all records associated with Key. |
out_async/2 | Asynchronously delete all records associated with Key. |
out_exact/3 | Delete all records associated with Key that compare equal to Value. |
out_exact_async/3 | Asynchronously delete all records associated with Key that compare equal to Value. |
prefix/3 | Retrieve keys which have Key as a prefix. |
prev/2 | Get the previous key in the database. |
put/3 | Enter a key-value pair into the database. |
put_async/3 | Asynchronously enter a key-value pair into the database. |
put_dup/3 | Enter a key-value pair into the database, allowing duplicate keys. |
put_dup_async/3 | Asynchronously enter a key-value pair into the database, allowing duplicate keys. |
range/6 | Retrieve keys between Begin and End, optionally inclusive. |
range_lb/4 | Retrieve keys greater than Begin, optionally inclusive. |
range_ub/4 | Retrieve keys less than End, optionally inclusive. |
sync/1 | Synchronize contents of a B+ tree database object with the file and the device. |
unlink/1 | Unlinks the port underlying the table from the current process. |
update_counter/4 | Update a counter associated with a tuple record whose Pos-th position consists of an integer field. |
vanish/1 | Remove all records. |
close(Tcerl::tcerl()) -> ok | {error, Reason}
Close a tcerl database. Corresponds to tcbdbclose ().
first(Tcerl::tcerl()) -> [binary()] | {error, Reason}
Get the first key in the database. Empty list is returned if there are no keys. Corresponds to tcbdbcurfirst ().
Get (possibly multiple) values associated with a Key. Key is flattened to binary before lookup. Corresponds to tcbdbget4 ().
info(Tcerl::tcerl()) -> [info()] | {error, Reason}
Returns information about the data store. file_size is the size of the file in bytes. no_objects in the number of different objects stored in the table. Corresponds to tcbdbrnum () and tcbdbfsiz ().
is_tcbdb_file(Filename::iodata()) -> true | false | {error, Reason}
Returns true if file Filename is a tcbdb file, false otherwise.
last(Tcerl::tcerl()) -> [binary()] | {error, Reason}
Get the last key in the database. Empty list is returned if there are no keys. Corresponds to tcbdbcurlast ().
Get the next key in the database. Key is flattened to binary before lookup. Empty list is returned if there are no more keys. Like ets:next/2, Key need not be an element of the table, the next key in order in the table (if any) will be returned. Corresponds to tcbdbcurjump ().
open(Name::iodata(), Options::[option()]) -> {ok, tcerl()} | {error, Reason}
Open a tcerl database. This function corresponds to tcbdbtune () followed by tcbdbopen (). raw uses the default comparison function for keys (memcmp); term_store uses erlang term order and requires valid external term formats as keys.
Delete all records associated with Key. Key is flattened to binary before lookup. Corresponds to tcbdbout3 ().
Asynchronously delete all records associated with Key. Returns immediately, and does not do error checking. Key is flattened to binary before lookup. Corresponds to tcbdbout3 ().
Delete all records associated with Key that compare equal to Value. Both Key and Value are flattened to binary before lookup. Corresponds to tcbdbout3 () coupled with tcbdbcurjump () and tcbdbcurnext ().
Asynchronously delete all records associated with Key that compare equal to Value. Returns immediately, and does not do error checking. Both Key and Value are flattened to binary before lookup. Corresponds to tcbdbout3 () coupled with tcbdbcurjump () and tcbdbcurnext ().
Retrieve keys which have Key as a prefix. Key is flattened to binary before lookup. If Max is non-negative, no more than Max results are returned. Corresponds to tcbdbprefix ().
Get the previous key in the database. Key is flattened to binary before lookup. Empty list is returned if there are no more keys. Like ets:prev/2, Key need not be an element of the table, the previous key in order in the table (if any) will be returned. Corresponds to tcbdbcurjump ().
Enter a key-value pair into the database. Both Key and Value are flattened to binary before insertion. If a record exists %% for the key it will be replaced. Corresponds to tcbdbput ().
Asynchronously enter a key-value pair into the database. Returns immediately, and does not do error checking. Both Key and Value are flattened to binary before insertion. If a record exists for the key it will be replaced. Corresponds to tcbdbput ().
Enter a key-value pair into the database, allowing duplicate keys. Both Key and Value are flattened to binary before insertion. Corresponds to tcbdbputdup ().
Asynchronously enter a key-value pair into the database, allowing duplicate keys. Returns immediately, and does not do error checking. Both Key and Value are flattened to binary before insertion. Corresponds to tcbdbputdup ().
range(Tcerl::tcerl(), Begin::iodata(), BeginInc::bool(), End::iodata(), EndInc::bool(), Max::integer()) -> [binary()] | {error, Reason}
Retrieve keys between Begin and End, optionally inclusive. Begin and End are flattened to binary before comparison. If Max is non-negative, no more than Max results are returned. Corresponds to tcbdbrange ().
range_lb(Tcerl::tcerl(), Begin::iodata(), BeginInc::bool(), Max::integer()) -> [binary()] | {error, Reason}
Retrieve keys greater than Begin, optionally inclusive. Begin is flattened to binary before comparison. If Max is non-negative, no more than Max results are returned. Corresponds to tcbdbrange ().
range_ub(Tcerl::tcerl(), End::iodata(), EndInc::bool(), Max::integer()) -> [binary()] | {error, Reason}
Retrieve keys less than End, optionally inclusive. End is flattened to binary before comparison. If Max is non-negative, no more than Max results are returned. Corresponds to tcbdbrange ().
sync(Tcerl::tcerl()) -> ok | {error, Reason}
Synchronize contents of a B+ tree database object with the file and the device. Corresponds to tcbdbsync ().
unlink(Tcerl::tcerl()) -> true
Unlinks the port underlying the table from the current process.
Update a counter associated with a tuple record whose Pos-th position consists of an integer field. The new counter value is returned.
For compatibility with ets/dets, this method will exit (throw an exception) if certain conditions are violated:vanish(Tcerl::tcerl()) -> ok | {error, Reason}
Remove all records. Corresponds to tcbdbvanish ().
Generated by EDoc, Mar 2 2009, 02:06:45.