Package org.apache.calcite.plan.volcano
Class VolcanoPlannerTraitTest.AltTrait
- java.lang.Object
-
- org.apache.calcite.plan.volcano.VolcanoPlannerTraitTest.AltTrait
-
- All Implemented Interfaces:
org.apache.calcite.plan.RelTrait
- Enclosing class:
- VolcanoPlannerTraitTest
private static class VolcanoPlannerTraitTest.AltTrait extends java.lang.Object implements org.apache.calcite.plan.RelTrait
Implementation ofRelTrait
for testing.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
description
private int
ordinal
private VolcanoPlannerTraitTest.AltTraitDef
traitDef
-
Constructor Summary
Constructors Modifier Constructor Description private
AltTrait(VolcanoPlannerTraitTest.AltTraitDef traitDef, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
org.apache.calcite.plan.RelTraitDef
getTraitDef()
int
hashCode()
void
register(org.apache.calcite.plan.RelOptPlanner planner)
boolean
satisfies(org.apache.calcite.plan.RelTrait trait)
java.lang.String
toString()
-
-
-
Field Detail
-
traitDef
private final VolcanoPlannerTraitTest.AltTraitDef traitDef
-
ordinal
private final int ordinal
-
description
private final java.lang.String description
-
-
Constructor Detail
-
AltTrait
private AltTrait(VolcanoPlannerTraitTest.AltTraitDef traitDef, java.lang.String description)
-
-
Method Detail
-
register
public void register(org.apache.calcite.plan.RelOptPlanner planner)
- Specified by:
register
in interfaceorg.apache.calcite.plan.RelTrait
-
getTraitDef
public org.apache.calcite.plan.RelTraitDef getTraitDef()
- Specified by:
getTraitDef
in interfaceorg.apache.calcite.plan.RelTrait
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interfaceorg.apache.calcite.plan.RelTrait
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceorg.apache.calcite.plan.RelTrait
- Overrides:
hashCode
in classjava.lang.Object
-
satisfies
public boolean satisfies(org.apache.calcite.plan.RelTrait trait)
- Specified by:
satisfies
in interfaceorg.apache.calcite.plan.RelTrait
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceorg.apache.calcite.plan.RelTrait
- Overrides:
toString
in classjava.lang.Object
-
-