Package org.apache.flink.table.sources
Class TableSourceValidation
java.lang.Object
org.apache.flink.table.sources.TableSourceValidation
Logic to validate
TableSource types.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasProctimeAttribute(TableSource<?> tableSource) Checks if the givenTableSourcedefines a proctime attribute.static booleanhasRowtimeAttribute(TableSource<?> tableSource) Checks if the givenTableSourcedefines a rowtime attribute.static voidvalidateTableSource(TableSource<?> tableSource, TableSchema schema) Validates a TableSource.
-
Method Details
-
validateTableSource
Validates a TableSource.- checks that all fields of the schema can be resolved
- checks that resolved fields have the correct type
- checks that the time attributes are correctly configured.
- Parameters:
tableSource- TheTableSourcefor which the time attributes are checked.
-
hasRowtimeAttribute
Checks if the givenTableSourcedefines a rowtime attribute.- Parameters:
tableSource- The table source to check.- Returns:
- true if the given table source defines rowtime attribute
-
hasProctimeAttribute
Checks if the givenTableSourcedefines a proctime attribute.- Parameters:
tableSource- The table source to check.- Returns:
- true if the given table source defines proctime attribute.
-