Class SymbolUtil
java.lang.Object
org.apache.flink.table.planner.typeutils.SymbolUtil
Utilities to map between symbols from both Calcite and Flink. It also defines a
SymbolUtil.SerializableSymbol format independent of concrete implementation classes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSerializable representation of a symbol that can be used for persistence. -
Method Summary
Modifier and TypeMethodDescriptionstatic Enum<?>calciteToCommon(Enum<?> calciteSymbol, boolean preferInternal) Converts from Calcite to a common symbol.calciteToSerializable(Enum<?> calciteSymbol) static Enum<?>commonToCalcite(Enum<?> commonSymbol) Converts from a common to a Calcite symbol.static <T extends Enum<T>>
TserializableToCalcite(Class<T> calciteSymbolClass, String value) static Enum<?>serializableToCalcite(SymbolUtil.SerializableSymbol serializableSymbol)
-
Method Details
-
commonToCalcite
Converts from a common to a Calcite symbol. The common symbol can be a publicly exposed one such asTimeIntervalUnitor internal one such asDateTimeUtils.TimeUnitRange. -
calciteToCommon
Converts from Calcite to a common symbol. The common symbol can be a publicly exposed one such asTimeIntervalUnitor internal one such asDateTimeUtils.TimeUnitRange. Since the common symbol is optional, the input is returned as a fallback. -
calciteToSerializable
-
serializableToCalcite
-
serializableToCalcite
-