in flink-connector-mongodb/src/main/java/org/apache/flink/connector/mongodb/table/MongoDynamicTableSource.java [84:107]
public MongoDynamicTableSource(
MongoConnectionOptions connectionOptions,
MongoReadOptions readOptions,
@Nullable LookupCache lookupCache,
int lookupMaxRetries,
long lookupRetryIntervalMs,
FilterHandlingPolicy filterHandlingPolicy,
DataType producedDataType) {
this.connectionOptions = connectionOptions;
this.readOptions = readOptions;
this.lookupCache = lookupCache;
checkArgument(
lookupMaxRetries >= 0,
String.format(
"The '%s' must be larger than or equal to 0.",
LookupOptions.MAX_RETRIES.key()));
checkArgument(
lookupRetryIntervalMs > 0,
String.format("The '%s' must be larger than 0.", LOOKUP_RETRY_INTERVAL.key()));
this.lookupMaxRetries = lookupMaxRetries;
this.lookupRetryIntervalMs = lookupRetryIntervalMs;
this.filterHandlingPolicy = filterHandlingPolicy;
this.producedDataType = producedDataType;
}