Java Code Examples for org.apache.flink.table.descriptors.DescriptorProperties#validateValue()
The following examples show how to use
org.apache.flink.table.descriptors.DescriptorProperties#validateValue() .
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: DatahubDescriptorValidator.java From alibaba-flink-connectors with Apache License 2.0 | 6 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CONNECTOR_TYPE, getConnectorTypeValue(), false); properties.validateString(CONNECTOR_PROJECT, false, 1); properties.validateString(CONNECTOR_TOPIC, false, 1); properties.validateString(CONNECTOR_ACCESS_ID, false, 1); properties.validateString(CONNECTOR_ACCESS_KEY, false, 1); properties.validateString(CONNECTOR_ENDPOINT, false, 1); properties.validateInt(CONNECTOR_BUFFER_SIZE, true, 1); properties.validateInt(CONNECTOR_BATCH_SIZE, true, 1); properties.validateLong(CONNECTOR_BATCH_WRITE_TIMEOUT_IN_MILLS, true, 1); properties.validateInt(CONNECTOR_RETRY_TIMEOUT_IN_MILLS, true, 1); properties.validateInt(CONNECTOR_MAX_RETRY_TIMES, true, 1); }
Example 2
Source File: PulsarCatalogValidator.java From pulsar-flink with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CATALOG_TYPE, CATALOG_TYPE_VALUE_PULSAR, false); properties.validateString(CATALOG_PULSAR_VERSION, true, 1); properties.validateString(CATALOG_SERVICE_URL, false, 1); properties.validateString(CATALOG_ADMIN_URL, false, 1); properties.validateInt(CATALOG_DEFAULT_PARTITIONS, true, 1); validateStartingOffsets(properties); }
Example 3
Source File: HiveCatalogValidator.java From flink with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CATALOG_TYPE, CATALOG_TYPE_VALUE_HIVE, false); properties.validateString(CATALOG_HIVE_CONF_DIR, true, 1); properties.validateString(CATALOG_HIVE_VERSION, true, 1); }
Example 4
Source File: PravegaValidator.java From flink-connectors with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CONNECTOR_TYPE, CONNECTOR_TYPE_VALUE_PRAVEGA, false); validateConnectionConfig(properties); if (properties.containsKey(CONNECTOR_READER)) { validateReaderConfigurations(properties); } if (properties.containsKey(CONNECTOR_WRITER)) { validateWriterConfigurations(properties); } }
Example 5
Source File: TaxiFaresValidator.java From flink-training-exercises with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CONNECTOR_TYPE, CONNECTOR_TYPE_VALUE_TAXI_FARES, false); properties.validateString(CONNECTOR_PATH, false); properties.validateInt(CONNECTOR_MAX_EVENT_DELAY_SECS, true, 0); properties.validateInt(CONNECTOR_SERVING_SPEED_FACTOR, true, 1); }
Example 6
Source File: TaxiRidesValidator.java From flink-training-exercises with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CONNECTOR_TYPE, CONNECTOR_TYPE_VALUE_TAXI_RIDES, false); properties.validateString(CONNECTOR_PATH, false); properties.validateInt(CONNECTOR_MAX_EVENT_DELAY_SECS, true, 0); properties.validateInt(CONNECTOR_SERVING_SPEED_FACTOR, true, 1); }
Example 7
Source File: HiveCatalogValidator.java From flink with Apache License 2.0 | 5 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(CATALOG_TYPE, CATALOG_TYPE_VALUE_HIVE, false); properties.validateString(CATALOG_HIVE_CONF_DIR, true, 1); properties.validateString(CATALOG_HIVE_VERSION, true, 1); }
Example 8
Source File: HiveModuleDescriptorValidator.java From flink with Apache License 2.0 | 4 votes |
@Override public void validate(DescriptorProperties properties) { super.validate(properties); properties.validateValue(MODULE_TYPE, MODULE_TYPE_HIVE, false); properties.validateString(MODULE_HIVE_VERSION, true, 1); }