MCPcopy Create free account
hub / github.com/apache/pig / getExpCount

Method getExpCount

test/org/apache/pig/test/TestFilter.java:121–132  ·  view source on GitHub ↗

@param inp2 @return @throws ExecException

(DataBag inp2)

Source from the content-addressed store, hash-verified

119 * @throws ExecException
120 */
121 private int getExpCount(DataBag inp2) throws ExecException {
122 // TODO Auto-generated method stub
123 int count = 0;
124 for (Iterator<Tuple> it = inp2.iterator(); it.hasNext();) {
125
126 Tuple t = it.next();
127 if (t.get(1) != null && (Integer)t.get(1) > 50)
128 count++;
129 }
130
131 return count;
132 }
133
134 @Test
135 public void testSimpleFilter() throws Exception {

Callers 1

testGetNextTupleMethod · 0.95

Calls 4

getMethod · 0.95
iteratorMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected