com.wcohen.ss.expt
Class NullBlocker

java.lang.Object
  extended by com.wcohen.ss.expt.Blocker
      extended by com.wcohen.ss.expt.NullBlocker

public class NullBlocker
extends Blocker

Inefficient exhausitive blocking algorithm. Produces all possible pairs from a MatchData structure.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.wcohen.ss.expt.Blocker
Blocker.Pair
 
Field Summary
 
Fields inherited from class com.wcohen.ss.expt.Blocker
clusterMode
 
Constructor Summary
NullBlocker()
           
 
Method Summary
 void block(MatchData data)
          Load matchdata and prepare it for production of candidate pairs.
 Blocker.Pair getPair(int i)
          Get the i-th candidate pair, as produced from most recently block()-ed data
 int numCorrectPairs()
          Return total number of correct pairs in the dataset.
 int size()
          Return number of candidate pairs, as produced from most recently block()-ed data
 java.lang.String toString()
           
 
Methods inherited from class com.wcohen.ss.expt.Blocker
countCorrectPairs, setClusterMode, setClusterMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullBlocker

public NullBlocker()
Method Detail

block

public void block(MatchData data)
Description copied from class: Blocker
Load matchdata and prepare it for production of candidate pairs.

Specified by:
block in class Blocker

size

public int size()
Description copied from class: Blocker
Return number of candidate pairs, as produced from most recently block()-ed data

Specified by:
size in class Blocker

getPair

public Blocker.Pair getPair(int i)
Description copied from class: Blocker
Get the i-th candidate pair, as produced from most recently block()-ed data

Specified by:
getPair in class Blocker

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

numCorrectPairs

public int numCorrectPairs()
Description copied from class: Blocker
Return total number of correct pairs in the dataset.

Specified by:
numCorrectPairs in class Blocker