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

Interface NodeMatcher

test/org/apache/pig/test/utils/dotGraph/NodeMatcher.java:33–48  ·  view source on GitHub ↗

This is a common interface for graph vertex mapping logic. Though I call it Matcher so that people don't get confused with mapper in MapReduce.

Source from the content-addressed store, hash-verified

31 */
32
33public interface NodeMatcher<E extends Operator,
34 P extends OperatorPlan<E>> {
35
36 /***
37 * This method does matching between vertices in two
38 * given plans.
39 *
40 * @param plan1
41 * @param plan2
42 * @param messages
43 * @return The output map: plan1Key -> plan2Key
44 */
45 Map<OperatorKey, OperatorKey> match(P plan1,
46 P plan2,
47 StringBuilder messages) ;
48}

Callers 5

testMultiNodeMethod · 0.65
testSingleNodeMatchMethod · 0.65
testTwoNodeMatchMethod · 0.65
testThreeNodeMatchMethod · 0.65
structurallyEqualsMethod · 0.65

Implementers 9

IncreasingKeyMatchertest/org/apache/pig/test/utils/dotGrap
ExactKeyMatchertest/org/apache/pig/test/utils/dotGrap
WholePlanRulesrc/org/apache/pig/newplan/logical/rul
Rulesrc/org/apache/pig/newplan/optimizer/R
CompiledRegexsrc/org/apache/pig/backend/hadoop/exec
NonConstantRegexsrc/org/apache/pig/backend/hadoop/exec
CompiledAutomatonsrc/org/apache/pig/backend/hadoop/exec
RegexInitsrc/org/apache/pig/backend/hadoop/exec
PatternPlansrc/org/apache/pig/backend/hadoop/exec

Calls

no outgoing calls

Tested by

no test coverage detected