Java Code Examples for org.apache.flink.table.types.logical.LogicalTypeRoot#values()
The following examples show how to use
org.apache.flink.table.types.logical.LogicalTypeRoot#values() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
CastingRuleBuilder implicitFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.implicitSourceTypes.add(root); } } } return this; }
Example 2
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
CastingRuleBuilder explicitFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.explicitSourceTypes.add(root); } } } return this; }
Example 3
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
/** * Should be called after {@link #explicitFromFamily(LogicalTypeFamily...)} to remove previously * added types. */ CastingRuleBuilder explicitNotFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.explicitSourceTypes.remove(root); } } } return this; }
Example 4
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
CastingRuleBuilder implicitFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.implicitSourceTypes.add(root); } } } return this; }
Example 5
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
CastingRuleBuilder explicitFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.explicitSourceTypes.add(root); } } } return this; }
Example 6
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 5 votes |
/** * Should be called after {@link #explicitFromFamily(LogicalTypeFamily...)} to remove previously * added types. */ CastingRuleBuilder explicitNotFromFamily(LogicalTypeFamily... sourceFamilies) { for (LogicalTypeFamily family : sourceFamilies) { for (LogicalTypeRoot root : LogicalTypeRoot.values()) { if (root.getFamilies().contains(family)) { this.explicitSourceTypes.remove(root); } } } return this; }
Example 7
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 4 votes |
private static LogicalTypeRoot[] allTypes() { return LogicalTypeRoot.values(); }
Example 8
Source File: LogicalTypeCasts.java From flink with Apache License 2.0 | 4 votes |
private static LogicalTypeRoot[] allTypes() { return LogicalTypeRoot.values(); }