@Test public void createNameFirstWordsHashBucketMatcher() { AffOrgMatcher matcher = FirstWordsHashBucketMatcherFactory.createNameFirstWordsHashBucketMatcher(); AffOrgJoiner joiner = getInternalState(matcher, AffOrgJoiner.class); assertTrue(joiner instanceof AffOrgHashBucketJoiner); BucketHasher<AffMatchAffiliation> affHasher = getInternalState(joiner, "affiliationBucketHasher"); assertTrue(affHasher instanceof AffiliationOrgNameBucketHasher); assertInternalStringPartFirstLettersHasher(affHasher, 2, 2); BucketHasher<AffMatchOrganization> orgHasher = getInternalState(joiner, "organizationBucketHasher"); assertTrue(orgHasher instanceof OrganizationNameBucketHasher); assertInternalStringPartFirstLettersHasher(orgHasher, 2, 2); AffOrgMatchComputer computer = getInternalState(matcher, AffOrgMatchComputer.class); List<AffOrgMatchVoter> voters = getInternalState(computer, "affOrgMatchVoters"); assertNameFirstWordsHashBucketMatcherVoters(voters); }
public static AffOrgMatcher createNameFirstWordsHashBucketMatcher() { AffOrgHashBucketJoiner firstWordsHashBucketJoiner = createFirstWordsAffOrgHashBucketJoiner(new GetOrgNameFunction()); AffOrgMatchComputer firstWordsHashMatchComputer = new AffOrgMatchComputer(); firstWordsHashMatchComputer.setAffOrgMatchVoters(createNameFirstWordsHashBucketMatcherVoters()); return new AffOrgMatcher(firstWordsHashBucketJoiner, firstWordsHashMatchComputer); }
FirstWordsHashBucketMatcherFactory { public static AffOrgMatcher createNameFirstWordsHashBucketMatcher() { AffOrgHashBucketJoiner firstWordsHashBucketJoiner = createFirstWordsAffOrgHashBucketJoiner(new GetOrgNameFunction()); AffOrgMatchComputer firstWordsHashMatchComputer = new AffOrgMatchComputer(); firstWordsHashMatchComputer.setAffOrgMatchVoters(createNameFirstWordsHashBucketMatcherVoters()); return new AffOrgMatcher(firstWordsHashBucketJoiner, firstWordsHashMatchComputer); } }
FirstWordsHashBucketMatcherFactory { public static AffOrgMatcher createNameFirstWordsHashBucketMatcher() { AffOrgHashBucketJoiner firstWordsHashBucketJoiner = createFirstWordsAffOrgHashBucketJoiner(new GetOrgNameFunction()); AffOrgMatchComputer firstWordsHashMatchComputer = new AffOrgMatchComputer(); firstWordsHashMatchComputer.setAffOrgMatchVoters(createNameFirstWordsHashBucketMatcherVoters()); return new AffOrgMatcher(firstWordsHashBucketJoiner, firstWordsHashMatchComputer); } private  FirstWordsHashBucketMatcherFactory(); }
FirstWordsHashBucketMatcherFactory { public static AffOrgMatcher createNameFirstWordsHashBucketMatcher() { AffOrgHashBucketJoiner firstWordsHashBucketJoiner = createFirstWordsAffOrgHashBucketJoiner(new GetOrgNameFunction()); AffOrgMatchComputer firstWordsHashMatchComputer = new AffOrgMatchComputer(); firstWordsHashMatchComputer.setAffOrgMatchVoters(createNameFirstWordsHashBucketMatcherVoters()); return new AffOrgMatcher(firstWordsHashBucketJoiner, firstWordsHashMatchComputer); } private  FirstWordsHashBucketMatcherFactory(); static AffOrgMatcher createNameFirstWordsHashBucketMatcher(); static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters(); }
FirstWordsHashBucketMatcherFactory { public static AffOrgMatcher createNameFirstWordsHashBucketMatcher() { AffOrgHashBucketJoiner firstWordsHashBucketJoiner = createFirstWordsAffOrgHashBucketJoiner(new GetOrgNameFunction()); AffOrgMatchComputer firstWordsHashMatchComputer = new AffOrgMatchComputer(); firstWordsHashMatchComputer.setAffOrgMatchVoters(createNameFirstWordsHashBucketMatcherVoters()); return new AffOrgMatcher(firstWordsHashBucketJoiner, firstWordsHashMatchComputer); } private  FirstWordsHashBucketMatcherFactory(); static AffOrgMatcher createNameFirstWordsHashBucketMatcher(); static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters();  }