updated documentation
This commit is contained in:
parent
b01a053664
commit
794edb07d5
1 changed files with 31 additions and 7 deletions
|
@ -43,10 +43,34 @@ typedef struct {
|
|||
|
||||
compensated_function recordid ThashCreate(int xid, int keySize, int valSize);
|
||||
compensated_function void ThashDelete(int xid, recordid hash);
|
||||
/* @return 1 if the key was defined, 0 otherwise. */
|
||||
compensated_function int ThashInsert(int xid, recordid hash, const byte* key, int keySize, const byte* value, int valueSize);
|
||||
/* @return 1 if the key was defined, 0 otherwise. */
|
||||
compensated_function int ThashRemove(int xid, recordid hash, const byte* key, int keySize);
|
||||
/**
|
||||
Insert key, value pair into hash, overwriting the existing value,
|
||||
if any.
|
||||
|
||||
@param xid transaction id
|
||||
@param hash recordid returned by ThashDelete
|
||||
@param key array of bytes that define key
|
||||
@param keySize length of key in bytes
|
||||
@param value array of bytes
|
||||
@param valueSize length of key in bytes
|
||||
@return 1 if the key was defined, 0 otherwise
|
||||
*/
|
||||
compensated_function int ThashInsert(int xid, recordid hash,
|
||||
const byte* key, int keySize,
|
||||
const byte* value, int valueSize);
|
||||
/**
|
||||
Remove existing key, value pair from hash.
|
||||
|
||||
@param xid transaction id
|
||||
@param hash recordid returned by ThashDelete
|
||||
@param key array of bytes that define key
|
||||
@param keySize length of key in bytes
|
||||
@param value array of bytes
|
||||
@param valueSize length of key in bytes
|
||||
@return 1 if the key was defined, 0 otherwise
|
||||
*/
|
||||
compensated_function int ThashRemove(int xid, recordid hash,
|
||||
const byte* key, int keySize);
|
||||
|
||||
/** @return size of the value associated with key, or -1 if key not found.
|
||||
(a return value of zero means the key is associated with an
|
||||
|
|
Loading…
Reference in a new issue