Package uk.ac.starlink.table.join
Class MultiJoinType
java.lang.Object
uk.ac.starlink.table.join.MultiJoinType
Enumeration defining how each table in a multi-table join can determines
the acceptability of a match. Acceptability can be used to decide which
matches form part of the output table resulting from a match.
- Since:
- 4 Dec 2007
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MultiJoinType
Any match containing table (even alone) is acceptable.static final MultiJoinType
No constraints on match inclusion for table.static final MultiJoinType
Table must be present in an acceptable match.static final MultiJoinType
Table must be absent in an acceptable match. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
accept
(MultiJoinType[] joinTypes, boolean[] present) Determines acceptability of a sequence of items based on a sequence of acceptability criteria.toString()
Returns join type name.
-
Field Details
-
MATCH
Table must be present in an acceptable match. -
NOMATCH
Table must be absent in an acceptable match. -
ALWAYS
Any match containing table (even alone) is acceptable. Overrides MATCH and NOMATCH. -
DEFAULT
No constraints on match inclusion for table.
-
-
Method Details
-
toString
Returns join type name. -
accept
Determines acceptability of a sequence of items based on a sequence of acceptability criteria.- Parameters:
joinTypes
- array of acceptability criteriapresent
- array of flags for presence/absence of items- Returns:
- true iff acceptability criteria are fulfilled
-