|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.join.BinContents
Describes the contents of all the bins used in a matching operation.
This is basically a mapping from bin id (one of the objects
returned from a MatchEngine.getBins(java.lang.Object[])
call) to a list of rows.
The way you would normally use it is for each row you are
interested in, call MatchEngine.getBins(java.lang.Object[])
, and then
associate it with each of the returned bins by calling
putRowInBin(java.lang.Object, uk.ac.starlink.table.join.RowRef)
on this object.
When you're done, you can call getRowLinks()
to find all the
distinct sets of rows that appear as bin contents.
Because of the declared semantics of the getBins call,
what this gives you is a list of all the groups of rows which
might be mutually matching according to the
MatchEngine.matchScore(java.lang.Object[], java.lang.Object[])
method.
Constructor Summary | |
BinContents(ProgressIndicator indicator)
Constructs a new BinContents object. |
Method Summary | |
boolean |
containsKey(Object key)
Indicates whether the given key exists in this map; that is whether any rows have yet been associated with it. |
Set |
getRowLinks()
Returns a set of RowLink objects which represent all the
distinct groups of RowRefs associated with any of the bins. |
void |
putRowInBin(Object key,
RowRef row)
Associates a row with a bin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinContents(ProgressIndicator indicator)
indicator
- progress indicator to use for logging time-consuming
operationsMethod Detail |
public void putRowInBin(Object key, RowRef row)
key
- bin IDrow
- row referencepublic boolean containsKey(Object key)
key
- bin ID
public Set getRowLinks() throws InterruptedException
RowLink
objects which represent all the
distinct groups of RowRefs associated with any of the bins.
Only RowLinks containing more than one entry are put in the
resulting set, since the others aren't interesting.
Note that this method will (for memory efficiency purposes) clear out the map; following a call to this method this object is effecctively empty of any data.
InterruptedException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |