<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Kyoto Cabinet: kyotocabinet::MapReduce::MapEmitter Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacekyotocabinet.html">kyotocabinet</a>::<a class="el" href="classkyotocabinet_1_1MapReduce.html">MapReduce</a>::<a class="el" href="classkyotocabinet_1_1MapReduce_1_1MapEmitter.html">MapEmitter</a> </div> </div> <div class="contents"> <h1>kyotocabinet::MapReduce::MapEmitter Class Reference</h1><!-- doxytag: class="kyotocabinet::MapReduce::MapEmitter" --> <p>Data emitter for the mapper. <a href="#_details">More...</a></p> <p><code>#include <kcdbext.h></code></p> <p><a href="classkyotocabinet_1_1MapReduce_1_1MapEmitter-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1MapReduce_1_1MapEmitter.html#ab34148346d29cfe1ce51964c27ed642e">emit</a> (const char *kbuf, size_t ksiz, const char *vbuf, size_t vsiz)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Emit a record from the mapper. <a href="#ab34148346d29cfe1ce51964c27ed642e"></a><br/></td></tr> <tr><td colspan="2"><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a960b8d4bb2ac67643ae0ac5b44e5aaf5"></a><!-- doxytag: member="kyotocabinet::MapReduce::MapEmitter::MapReduce" ref="a960b8d4bb2ac67643ae0ac5b44e5aaf5" args="" --> class </td><td class="memItemRight" valign="bottom"><b>MapReduce</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a851d4923384b04ffd8389665775a82c6"></a><!-- doxytag: member="kyotocabinet::MapReduce::MapEmitter::MapReduce::MapVisitor" ref="a851d4923384b04ffd8389665775a82c6" args="" --> class </td><td class="memItemRight" valign="bottom"><b>MapReduce::MapVisitor</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Data emitter for the mapper. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ab34148346d29cfe1ce51964c27ed642e"></a><!-- doxytag: member="kyotocabinet::MapReduce::MapEmitter::emit" ref="ab34148346d29cfe1ce51964c27ed642e" args="(const char *kbuf, size_t ksiz, const char *vbuf, size_t vsiz)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool kyotocabinet::MapReduce::MapEmitter::emit </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>kbuf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>ksiz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>vbuf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>vsiz</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Emit a record from the mapper. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the key region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the key region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>vbuf</em> </td><td>the pointer to the value region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>vsiz</em> </td><td>the size of the value region. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true on success, or false on failure. </dd></dl> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Sat Dec 11 01:50:27 2010 for Kyoto Cabinet by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>