|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.join.CombinedMatchEngine
A matching engine which provides matching facilities by combining the
characteristics of a number of other matching engines.
Because of the way it calculates bins (effectively multiplying one
bin array by another), it is a good idea for efficiency's sake to
keep down the number of bins returned by the MatchEngine.getBins(java.lang.Object[])
method of the component match engines.
Constructor Summary | |
CombinedMatchEngine(MatchEngine[] engines)
Constructs a new MatchEngine based on a sequence of others. |
Method Summary | |
Object[] |
getBins(Object[] tuple)
Returns a set of keys for bins into which possible matches for a given tuple might fall. |
DescribedValue[] |
getMatchParameters()
Returns a set of DescribedValue objects whose values can be modified to modify the matching criteria. |
ValueInfo[] |
getTupleInfos()
Returns a set of ValueInfo objects indicating what is required for the elements of each tuple. |
boolean |
matches(Object[] tuple1,
Object[] tuple2)
Indicates whether two tuples are to be linked. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CombinedMatchEngine(MatchEngine[] engines)
engines
- match engine sequence to be combinedMethod Detail |
public boolean matches(Object[] tuple1, Object[] tuple2)
MatchEngine
matches
in interface MatchEngine
tuple1
- one tupletuple2
- the other tuple
public Object[] getBins(Object[] tuple)
MatchEngine
getBins
in interface MatchEngine
tuple
-
public ValueInfo[] getTupleInfos()
MatchEngine
getTupleInfos
in interface MatchEngine
public DescribedValue[] getMatchParameters()
MatchEngine
DescribedValue.setValue(java.lang.Object)
on the
returned objects.
getMatchParameters
in interface MatchEngine
public String toString()
toString
in class Object
|
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 |