- All Implemented Interfaces:
RelNode
COVER [EXACT] t (R).
COVER t (R) keeps a near-minimal subset of R's rows such that
every distinct t-column value combination occurring in R occurs in the
output (PICT-style pairwise / t-way combinatorial test generation). It is a
windowed filter — output ⊆ input, output schema = input schema — the third
subset-selection operator after TOP and OPTIMIZE.
The strength() is the covering strength t: a positive integer
specifying how many columns must be covered in every combination. Strength 2
(all-pairs) is the most common case.
When exact() is true (COVER EXACT t (R)), the executor
uses a MIP set-cover formulation (via ojAlgo) to find a provably minimal suite
instead of the default greedy near-minimal algorithm.
Surface syntax: COVER t (R) or COVER EXACT t (R) (keyword-only, no glyph).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConvenience constructor for tests:SourceLocation.UNKNOWN.CoverNode(int strength, boolean exact, RelNode input, SourceLocation location) Creates an instance of aCoverNoderecord class.Convenience constructor for tests:exact=false,SourceLocation.UNKNOWN.CoverNode(int strength, RelNode input, SourceLocation location) Backward-compatible constructor:exact=false. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(RelNodeVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.booleanexact()Returns the value of theexactrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.location()Returns the value of thelocationrecord component.intstrength()Returns the value of thestrengthrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.darkcollective.relix.ast.RelNode
children, mapChildren, materializationMode, prettyPrint
-
Constructor Details
-
CoverNode
Creates an instance of aCoverNoderecord class.- Parameters:
strength- the value for thestrengthrecord componentexact- the value for theexactrecord componentinput- the value for theinputrecord componentlocation- the value for thelocationrecord component
-
CoverNode
Backward-compatible constructor:exact=false. -
CoverNode
Convenience constructor for tests:SourceLocation.UNKNOWN. -
CoverNode
Convenience constructor for tests:exact=false,SourceLocation.UNKNOWN.
-
-
Method Details
-
accept
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
strength
public int strength()Returns the value of thestrengthrecord component.- Returns:
- the value of the
strengthrecord component
-
exact
public boolean exact()Returns the value of theexactrecord component.- Returns:
- the value of the
exactrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
location
Returns the value of thelocationrecord component.
-