Package org.apache.calcite.rel.rules
Class DateRangeRules.ExtractFinder
- java.lang.Object
-
- org.apache.calcite.rex.RexVisitorImpl
-
- org.apache.calcite.rel.rules.DateRangeRules.ExtractFinder
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,RexVisitor
- Enclosing class:
- DateRangeRules
private static class DateRangeRules.ExtractFinder extends RexVisitorImpl implements java.lang.AutoCloseable
Visitor that searches for calls toEXTRACT
,FLOOR
orCEIL
, building a list of distinct time units.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<SqlKind>
opKinds
private static java.lang.ThreadLocal<DateRangeRules.ExtractFinder>
THREAD_INSTANCES
private java.util.Set<org.apache.calcite.avatica.util.TimeUnitRange>
timeUnits
-
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExtractFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.Object
visitCall(RexCall call)
-
Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef
-
-
-
-
Field Detail
-
timeUnits
private final java.util.Set<org.apache.calcite.avatica.util.TimeUnitRange> timeUnits
-
opKinds
private final java.util.Set<SqlKind> opKinds
-
THREAD_INSTANCES
private static final java.lang.ThreadLocal<DateRangeRules.ExtractFinder> THREAD_INSTANCES
-
-
Method Detail
-
visitCall
public java.lang.Object visitCall(RexCall call)
- Specified by:
visitCall
in interfaceRexVisitor
- Overrides:
visitCall
in classRexVisitorImpl
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-