blob: 23d365fb3dafafe1f32ec84a67c137f7fbed04ef [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_31) on Thu Apr 05 22:07:23 PDT 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
FilterFn (crunch 0.2.0 API)
</TITLE>
<META NAME="date" CONTENT="2012-04-05">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FilterFn (crunch 0.2.0 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FilterFn.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/cloudera/crunch/Emitter.html" title="interface in com.cloudera.crunch"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/cloudera/crunch/FilterFn.AndFn.html" title="class in com.cloudera.crunch"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/cloudera/crunch/FilterFn.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="FilterFn.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.cloudera.crunch</FONT>
<BR>
Class FilterFn&lt;T&gt;</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch">com.cloudera.crunch.DoFn</A>&lt;T,T&gt;
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.cloudera.crunch.FilterFn&lt;T&gt;</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/cloudera/crunch/FilterFn.AndFn.html" title="class in com.cloudera.crunch">FilterFn.AndFn</A>, <A HREF="../../../com/cloudera/crunch/FilterFn.NotFn.html" title="class in com.cloudera.crunch">FilterFn.NotFn</A>, <A HREF="../../../com/cloudera/crunch/FilterFn.OrFn.html" title="class in com.cloudera.crunch">FilterFn.OrFn</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>FilterFn&lt;T&gt;</B><DT>extends <A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch">DoFn</A>&lt;T,T&gt;</DL>
</PRE>
<P>
A <A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch"><CODE>DoFn</CODE></A> for the common case of filtering the members of
a <A HREF="../../../com/cloudera/crunch/PCollection.html" title="interface in com.cloudera.crunch"><CODE>PCollection</CODE></A> based on a boolean condition.
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#com.cloudera.crunch.FilterFn">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.AndFn.html" title="class in com.cloudera.crunch">FilterFn.AndFn</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.AndFn.html" title="type parameter in FilterFn.AndFn">S</A>&gt;</B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.NotFn.html" title="class in com.cloudera.crunch">FilterFn.NotFn</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.NotFn.html" title="type parameter in FilterFn.NotFn">S</A>&gt;</B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.OrFn.html" title="class in com.cloudera.crunch">FilterFn.OrFn</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.OrFn.html" title="type parameter in FilterFn.OrFn">S</A>&gt;</B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#FilterFn()">FilterFn</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#accept(T)">accept</A></B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&nbsp;input)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, emit the given record.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
<TR ALIGN="right" VALIGN="">
<TD NOWRAP><FONT SIZE="-1">
<CODE>&lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;</CODE></FONT></TD>
</TR>
</TABLE>
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#and(com.cloudera.crunch.FilterFn...)">and</A></B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;...&nbsp;fns)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
<TR ALIGN="right" VALIGN="">
<TD NOWRAP><FONT SIZE="-1">
<CODE>&lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;</CODE></FONT></TD>
</TR>
</TABLE>
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#not(com.cloudera.crunch.FilterFn)">not</A></B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;&nbsp;fn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
<TR ALIGN="right" VALIGN="">
<TD NOWRAP><FONT SIZE="-1">
<CODE>&lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;</CODE></FONT></TD>
</TR>
</TABLE>
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#or(com.cloudera.crunch.FilterFn...)">or</A></B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;...&nbsp;fns)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#process(T, com.cloudera.crunch.Emitter)">process</A></B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&nbsp;input,
<A HREF="../../../com/cloudera/crunch/Emitter.html" title="interface in com.cloudera.crunch">Emitter</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&gt;&nbsp;emitter)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processes the records from a <A HREF="../../../com/cloudera/crunch/PCollection.html" title="interface in com.cloudera.crunch"><CODE>PCollection</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/cloudera/crunch/FilterFn.html#scaleFactor()">scaleFactor</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an estimate of how applying this function to a <A HREF="../../../com/cloudera/crunch/PCollection.html" title="interface in com.cloudera.crunch"><CODE>PCollection</CODE></A>
will cause it to change in side.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.cloudera.crunch.DoFn"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.cloudera.crunch.<A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch">DoFn</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../com/cloudera/crunch/DoFn.html#cleanup(com.cloudera.crunch.Emitter)">cleanup</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#configure(org.apache.hadoop.conf.Configuration)">configure</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#getCounter(java.lang.Enum)">getCounter</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#getCounter(java.lang.String, java.lang.String)">getCounter</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#getStatus()">getStatus</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#getTaskAttemptID()">getTaskAttemptID</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#initialize()">initialize</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#progress()">progress</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#setConfigurationForTest(org.apache.hadoop.conf.Configuration)">setConfigurationForTest</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext)">setContext</A>, <A HREF="../../../com/cloudera/crunch/DoFn.html#setStatus(java.lang.String)">setStatus</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="FilterFn()"><!-- --></A><H3>
FilterFn</H3>
<PRE>
public <B>FilterFn</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="accept(java.lang.Object)"><!-- --></A><A NAME="accept(T)"><!-- --></A><H3>
accept</H3>
<PRE>
public abstract boolean <B>accept</B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&nbsp;input)</PRE>
<DL>
<DD>If true, emit the given record.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="process(java.lang.Object,com.cloudera.crunch.Emitter)"><!-- --></A><A NAME="process(T, com.cloudera.crunch.Emitter)"><!-- --></A><H3>
process</H3>
<PRE>
public void <B>process</B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&nbsp;input,
<A HREF="../../../com/cloudera/crunch/Emitter.html" title="interface in com.cloudera.crunch">Emitter</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&gt;&nbsp;emitter)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/cloudera/crunch/DoFn.html#process(S, com.cloudera.crunch.Emitter)">DoFn</A></CODE></B></DD>
<DD>Processes the records from a <A HREF="../../../com/cloudera/crunch/PCollection.html" title="interface in com.cloudera.crunch"><CODE>PCollection</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/cloudera/crunch/DoFn.html#process(S, com.cloudera.crunch.Emitter)">process</A></CODE> in class <CODE><A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch">DoFn</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>,<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&gt;</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - The input record<DD><CODE>emitter</CODE> - The emitter to send the output to</DL>
</DD>
</DL>
<HR>
<A NAME="scaleFactor()"><!-- --></A><H3>
scaleFactor</H3>
<PRE>
public float <B>scaleFactor</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/cloudera/crunch/DoFn.html#scaleFactor()">DoFn</A></CODE></B></DD>
<DD>Returns an estimate of how applying this function to a <A HREF="../../../com/cloudera/crunch/PCollection.html" title="interface in com.cloudera.crunch"><CODE>PCollection</CODE></A>
will cause it to change in side. The optimizer uses these estimates to
decide where to break up dependent MR jobs into separate Map and Reduce
phases in order to minimize I/O.
<p>
Subclasses of <code>DoFn</code> that will substantially alter the size of the
resulting <code>PCollection</code> should override this method.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/cloudera/crunch/DoFn.html#scaleFactor()">scaleFactor</A></CODE> in class <CODE><A HREF="../../../com/cloudera/crunch/DoFn.html" title="class in com.cloudera.crunch">DoFn</A>&lt;<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>,<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="type parameter in FilterFn">T</A>&gt;</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="and(com.cloudera.crunch.FilterFn...)"><!-- --></A><H3>
and</H3>
<PRE>
public static &lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt; <B>and</B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;...&nbsp;fns)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="or(com.cloudera.crunch.FilterFn...)"><!-- --></A><H3>
or</H3>
<PRE>
public static &lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt; <B>or</B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;...&nbsp;fns)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="not(com.cloudera.crunch.FilterFn)"><!-- --></A><H3>
not</H3>
<PRE>
public static &lt;S&gt; <A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt; <B>not</B>(<A HREF="../../../com/cloudera/crunch/FilterFn.html" title="class in com.cloudera.crunch">FilterFn</A>&lt;S&gt;&nbsp;fn)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FilterFn.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/cloudera/crunch/Emitter.html" title="interface in com.cloudera.crunch"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/cloudera/crunch/FilterFn.AndFn.html" title="class in com.cloudera.crunch"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/cloudera/crunch/FilterFn.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="FilterFn.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2012. All Rights Reserved.
</BODY>
</HTML>