|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.expt.Blocker
public abstract class Blocker
Produces candidate pairs from a MatchData structure, and provides access to those candidate pairs.
Nested Class Summary | |
---|---|
static class |
Blocker.Pair
Holds a pair of instances, with mutable distance between them. |
Field Summary | |
---|---|
protected boolean |
clusterMode
|
Constructor Summary | |
---|---|
Blocker()
|
Method Summary | |
---|---|
abstract void |
block(MatchData data)
Load matchdata and prepare it for production of candidate pairs. |
protected int |
countCorrectPairs(MatchData data)
Compute number of correct pairs betwn src1 and src2, where src2>src1 |
abstract Blocker.Pair |
getPair(int i)
Get the i-th candidate pair, as produced from most recently block()-ed data |
abstract int |
numCorrectPairs()
Return total number of correct pairs in the dataset. |
void |
setClusterMode(boolean flag)
In clusterMode, consider pairings between instances from the same source. |
void |
setClusterMode(java.lang.Boolean flag)
|
abstract int |
size()
Return number of candidate pairs, as produced from most recently block()-ed data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean clusterMode
Constructor Detail |
---|
public Blocker()
Method Detail |
---|
public abstract void block(MatchData data)
public abstract Blocker.Pair getPair(int i)
public abstract int size()
public final void setClusterMode(boolean flag)
public final void setClusterMode(java.lang.Boolean flag)
public abstract int numCorrectPairs()
protected int countCorrectPairs(MatchData data)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |