org.apache.flink.table.descriptors.StreamTableDescriptorValidator Java Examples
The following examples show how to use
org.apache.flink.table.descriptors.StreamTableDescriptorValidator.
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: ElasticsearchUpsertTableSinkFactoryBase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private DescriptorProperties getValidatedProperties(Map<String, String> properties) { final DescriptorProperties descriptorProperties = new DescriptorProperties(true); descriptorProperties.putProperties(properties); new StreamTableDescriptorValidator(true, false, true).validate(descriptorProperties); new SchemaValidator(true, false, false).validate(descriptorProperties); new ElasticsearchValidator().validate(descriptorProperties); return descriptorProperties; }
Example #2
Source File: ElasticsearchUpsertTableSinkFactoryBase.java From flink with Apache License 2.0 | 5 votes |
private DescriptorProperties getValidatedProperties(Map<String, String> properties) { final DescriptorProperties descriptorProperties = new DescriptorProperties(true); descriptorProperties.putProperties(properties); new StreamTableDescriptorValidator(true, false, true).validate(descriptorProperties); new SchemaValidator(true, false, false).validate(descriptorProperties); new ElasticsearchValidator().validate(descriptorProperties); return descriptorProperties; }
Example #3
Source File: TaxiRideTableSourceFactory.java From flink-training-exercises with Apache License 2.0 | 5 votes |
@Override public List<String> supportedProperties() { List<String> properties = new ArrayList<>(); properties.add(StreamTableDescriptorValidator.UPDATE_MODE); properties.add(CONNECTOR_PATH); properties.add(CONNECTOR_MAX_EVENT_DELAY_SECS); properties.add(CONNECTOR_SERVING_SPEED_FACTOR); return properties; }
Example #4
Source File: TaxiRideTableSourceFactory.java From flink-training-exercises with Apache License 2.0 | 5 votes |
private DescriptorProperties getValidatedProperties(Map<String, String> properties) { final DescriptorProperties descriptorProperties = new DescriptorProperties(true); descriptorProperties.putProperties(properties); new StreamTableDescriptorValidator(true, false, false).validate(descriptorProperties); new TaxiRidesValidator().validate(descriptorProperties); return descriptorProperties; }
Example #5
Source File: TaxiFareTableSourceFactory.java From flink-training-exercises with Apache License 2.0 | 5 votes |
@Override public List<String> supportedProperties() { List<String> properties = new ArrayList<>(); properties.add(StreamTableDescriptorValidator.UPDATE_MODE); properties.add(CONNECTOR_PATH); properties.add(CONNECTOR_MAX_EVENT_DELAY_SECS); properties.add(CONNECTOR_SERVING_SPEED_FACTOR); return properties; }
Example #6
Source File: TaxiFareTableSourceFactory.java From flink-training-exercises with Apache License 2.0 | 5 votes |
private DescriptorProperties getValidatedProperties(Map<String, String> properties) { final DescriptorProperties descriptorProperties = new DescriptorProperties(true); descriptorProperties.putProperties(properties); new StreamTableDescriptorValidator(true, false, false).validate(descriptorProperties); new TaxiFaresValidator().validate(descriptorProperties); return descriptorProperties; }
Example #7
Source File: ElasticsearchUpsertTableSinkFactoryBase.java From flink with Apache License 2.0 | 5 votes |
private DescriptorProperties getValidatedProperties(Map<String, String> properties) { final DescriptorProperties descriptorProperties = new DescriptorProperties(true); descriptorProperties.putProperties(properties); new StreamTableDescriptorValidator(true, false, true).validate(descriptorProperties); new SchemaValidator(true, false, false).validate(descriptorProperties); new ElasticsearchValidator().validate(descriptorProperties); return descriptorProperties; }