/usr/share/doc/mrmpi-doc/print.html is in mrmpi-doc 1.0~20140404-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | <HTML>
<CENTER><A HREF = "http://mapreduce.sandia.gov">MapReduce-MPI WWW Site</A> - <A HREF = "Manual.html">MapReduce-MPI Documentation</A>
</CENTER>
<HR>
<H3>MapReduce print() method
</H3>
<PRE>void MapReduce::print(int proc, int nstride, int kflag, int vflag)
void MapReduce::print(char *file, int fflag, int proc, int nstride, int kflag, int vflag)
</PRE>
<P>This calls the print() method of a MapReduce object. The first
variant prints out the KeyValue or KeyMultiValue pairs to the screen.
The second variant prints to one or more files. This can be useful
for debugging purposes.
</P>
<P>If <I>proc</I> < 0, then all processors print their information, one
processor at a time. If <I>proc</I> >= 0, then only the specified <I>proc</I>
prints its information.
</P>
<P>For printing to files, if <I>fflag</I> = 0, then all processors print in
succession to the names file. If <I>fflag</I> = 1, then each processor
writes to file.P, where P = 0 to Nprocs-1.
</P>
<P>Each processor prints every Nth of its pairs, where N = <I>nstride</I>.
Thus if <I>nstride</I> = 1, all pairs are printed.
</P>
<P>The <I>kflag</I> and <I>vflag</I> setting control the format of the printed
output. Only a limited set of choices is available. If these choices
do not match the format of your keys and values, you will need to pass
your data to map() or reduce() function you write yourself to print
them. These can be invoked by the <A HREF = "map.html">map()</A> or
<A HREF = "reduce.html">reduce()</A> methods.
</P>
<P>These are the recognized <I>kflag</I> and <I>vflag</I> settings:
</P>
<UL><LI>flag = 0 for NULL
<LI>flag = 1 for 32-bit positive integer (int)
<LI>flag = 2 for 64-bit unsigned integer (uint64_t)
<LI>flag = 3 for 32-bit floating point value (float)
<LI>flag = 4 for 64-bit floating point value (double)
<LI>flag = 5 for a NULL-terminated string
<LI>flag = 6 for a pair of 32-bit positive integers (int int)
<LI>flag = 7 for a pair of 64-bit unsigned integers (uint64_t uint64_t)
</UL>
<P>For example, using <I>kflag</I> = 1 and <I>vflag</I> = 7, would be appropriate
for keys that are 32-bit integers, and values that are a pair of
64-bit integers.
</P>
<P>For KeyMultiValue pairs, the <I>vflag</I> setting is used to format each
output value in the multi-value.
</P>
<HR>
<P><B>Related methods</B>: <A HREF = "collate.html">collate()</A>
</P>
</HTML>
|