Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > a4c98df40e78f6c892308fd6841f950a > files > 79

lib64db4.2-devel-4.2.52-11mdv2007.0.x86_64.rpm

<!--$Id: dbt_bulk.so,v 10.11 2003/09/25 15:26:30 bostic Exp $-->
<!--Copyright 1997-2003 by Sleepycat Software, Inc.-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB: DBT</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td>
<h3>DBT: Bulk Retrieval</h3>
</td>
<td align=right>
<a href="../../db42-devel-4.2.52/api_c/api_index.html"><img src="../../db42-4.2.52/images/api.gif" alt="API"></a>
<a href="../../db42-devel-4.2.52/ref/toc.html"><img src="../../db42-4.2.52/images/ref.gif" alt="Ref"></a>
</td></tr></table>
<hr size=1 noshade>
<tt>
<a name="3"><!--meow--></a>
<p>If either of the <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE">DB_MULTIPLE</a> or <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a> flags
were specified to the <a href="../../db42-devel-4.2.52/api_c/db_get.html">DB-&gt;get</a> or <a href="../../db42-devel-4.2.52/api_c/dbc_get.html">DBcursor-&gt;c_get</a> methods, the data
<a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> returned by those interfaces will refer to a buffer that
is filled with data.  Access to that data is through the following
macros:</p>
<p><dl compact>
<p><dt><a name="DB_MULTIPLE_INIT">DB_MULTIPLE_INIT</a><dd><pre>DB_MULTIPLE_INIT(void *pointer, <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> *data);</pre>
<p>Initialize the retrieval.  The <b>pointer</b> parameter is a variable
to be initialized.  The <b>data</b> parameter is a <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> structure
returned from a successful call to <a href="../../db42-devel-4.2.52/api_c/db_get.html">DB-&gt;get</a> or <a href="../../db42-devel-4.2.52/api_c/dbc_get.html">DBcursor-&gt;c_get</a>
for which one of the <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE">DB_MULTIPLE</a> or <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a>
flags was specified.</p>
<p><dt><a name="DB_MULTIPLE_NEXT">DB_MULTIPLE_NEXT</a><dd><pre>DB_MULTIPLE_NEXT(void *pointer, <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> *data, void *retdata, size_t retdlen);</pre>
<p>The <b>data</b> parameter is a <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> structure returned from a
successful call to <a href="../../db42-devel-4.2.52/api_c/db_get.html">DB-&gt;get</a> or <a href="../../db42-devel-4.2.52/api_c/dbc_get.html">DBcursor-&gt;c_get</a> for which the
<a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE">DB_MULTIPLE</a> flag was specified.  The <b>pointer</b> and
<b>data</b> parameters must have been previously initialized by a call
to DB_MULTIPLE_INIT.  The <b>retdata</b> parameter is set to
refer to the next data element in the returned set, and the
<b>retdlen</b> parameter is set to the length, in bytes, of that data
element.  When used with the Queue and Recno access methods,
<b>retdata</b> will be set to NULL for deleted records.  The
<b>pointer</b> parameter is set to NULL if there are no more data
elements in the returned set.</p>
<p><dt><a name="DB_MULTIPLE_KEY_NEXT">DB_MULTIPLE_KEY_NEXT</a><dd><pre>DB_MULTIPLE_KEY_NEXT(void *pointer, <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> *data,
	void *retkey, size_t retklen, void *retdata, size_t retdlen);</pre>
<p>The <b>data</b> parameter is a <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> structure returned from a
successful call to <a href="../../db42-devel-4.2.52/api_c/dbc_get.html">DBcursor-&gt;c_get</a> for which the <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a>
flag was specified.  The <b>pointer</b> and <b>data</b> parameters must
have been previously initialized by a call to DB_MULTIPLE_INIT.
The <b>retkey</b> parameter is set to refer to the next key element in
the returned set, and the <b>retklen</b> parameter is set to the length,
in bytes, of that key element.  The <b>retdata</b> parameter is set to
refer to the next data element in the returned set, and the
<b>retdlen</b> parameter is set to the length, in bytes, of that data
element.  The <b>pointer</b> parameter is set to NULL if there are
no more key/data pairs in the returned set.</p>
<p><dt><a name="DB_MULTIPLE_RECNO_NEXT">DB_MULTIPLE_RECNO_NEXT</a><dd><pre>DB_MULTIPLE_RECNO_NEXT(void *pointer, <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> *data,
	db_recno_t recno, void * retdata, size_t retdlen);</pre>
<p>The <b>data</b> parameter is a <a href="../../db42-devel-4.2.52/api_c/dbt_class.html">DBT</a> structure returned from a
successful call to <a href="../../db42-devel-4.2.52/api_c/dbc_get.html">DBcursor-&gt;c_get</a> for which the <a href="../../db42-devel-4.2.52/api_c/dbc_get.html#DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a>
flag was specified.  The <b>pointer</b> and <b>data</b> parameters must
have been previously initialized by a call to DB_MULTIPLE_INIT.
The <b>recno</b> parameter is set to the record number of the next
record in the returned set.  The <b>retdata</b> parameter is set to
refer to the next data element in the returned set, and the
<b>retdlen</b> parameter is set to the length, in bytes, of that data
element.  When used with the Queue and Recno access methods,
<b>retdata</b> will be set to NULL for deleted records.  The
<b>pointer</b> parameter is set to NULL if there are no more key/data
pairs in the returned set.</p>
</dl>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<a href="../../db42-devel-4.2.52/api_c/api_index.html"><img src="../../db42-4.2.52/images/api.gif" alt="API"></a><a href="../../db42-devel-4.2.52/ref/toc.html"><img src="../../db42-4.2.52/images/ref.gif" alt="Ref"></a>
</td></tr></table>
<p><font size=1><a href="../../db42-devel-4.2.52/sleepycat/legal.html">Copyright (c) 1996-2003</a> <a href="http://www.sleepycat.com">Sleepycat Software, Inc.</a> - All rights reserved.</font>
</body>
</html>