@Override protected void validate() { super.validate(); Preconditions.checkArgument(cache != null, "Must provide a Guava cache instance."); } }
@Override protected void validate() { super.validate(); Preconditions.checkArgument(cache != null, "Must provide a Guava cache instance."); } }
@Override protected void validate() { super.validate(); Preconditions.checkArgument(cache != null, "Must provide a Guava cache instance."); } }
@Override protected void validate() { super.validate(); Preconditions.checkArgument(cache != null, "Must provide a Guava cache instance."); } }
@Override protected void validate() { super.validate(); Preconditions.checkNotNull(readFn, "TableReadFunction is required."); Preconditions.checkArgument(rateLimiter == null || tagCreditsMap.isEmpty(), "Only one of rateLimiter instance or read/write limits can be specified"); // Assume callback executor pool should have no more than 20 threads Preconditions.checkArgument(asyncCallbackPoolSize <= 20, "too many threads for async callback executor."); } }
@Override protected void validate() { super.validate(); Preconditions.checkNotNull(readFn, "TableReadFunction is required."); Preconditions.checkArgument(rateLimiter == null || tagCreditsMap.isEmpty(), "Only one of rateLimiter instance or read/write limits can be specified"); // Assume callback executor pool should have no more than 20 threads Preconditions.checkArgument(asyncCallbackPoolSize <= 20, "too many threads for async callback executor."); } }
@Override protected void validate() { super.validate(); Preconditions.checkNotNull(readFn, "TableReadFunction is required."); Preconditions.checkArgument(rateLimiter == null || tagCreditsMap.isEmpty(), "Only one of rateLimiter instance or read/write limits can be specified"); // Assume callback executor pool should have no more than 20 threads Preconditions.checkArgument(asyncCallbackPoolSize <= 20, "too many threads for async callback executor."); } }
@Override protected void validate() { super.validate(); Preconditions.checkNotNull(readFn, "TableReadFunction is required."); Preconditions.checkArgument(rateLimiter == null || tagCreditsMap.isEmpty(), "Only one of rateLimiter instance or read/write limits can be specified"); // Assume callback executor pool should have no more than 20 threads Preconditions.checkArgument(asyncCallbackPoolSize <= 20, "too many threads for async callback executor."); } }
@Override public Map<String, String> toConfig(Config jobConfig) { Preconditions.checkNotNull(jobConfig, "Job config is null"); validate(); Map<String, String> tableConfig = new HashMap<>(config); tableConfig.put( String.format(JavaTableConfig.TABLE_PROVIDER_FACTORY, tableId), getProviderFactoryClassName()); return Collections.unmodifiableMap(tableConfig); }
/** * Validate that this table descriptor is constructed properly */ protected void validate() { super.validate(); if (sideInputs != null || sideInputsProcessor != null) { Preconditions.checkArgument(sideInputs != null && !sideInputs.isEmpty() && sideInputsProcessor != null, String.format("Invalid side input configuration for table: %s. " + "Both side inputs and the processor must be provided", tableId)); } if (!enableChangelog) { Preconditions.checkState(changelogStream == null, String.format("Invalid changelog configuration for table: %s. Changelog " + "must be enabled, when changelog stream name is provided", tableId)); Preconditions.checkState(changelogReplicationFactor == null, String.format("Invalid changelog configuration for table: %s. Changelog " + "must be enabled, when changelog replication factor is provided", tableId)); } }
/** * Validate that this table descriptor is constructed properly */ protected void validate() { super.validate(); if (sideInputs != null || sideInputsProcessor != null) { Preconditions.checkArgument(sideInputs != null && !sideInputs.isEmpty() && sideInputsProcessor != null, String.format("Invalid side input configuration for table: %s. " + "Both side inputs and the processor must be provided", tableId)); } if (!enableChangelog) { Preconditions.checkState(changelogStream == null, String.format("Invalid changelog configuration for table: %s. Changelog " + "must be enabled, when changelog stream name is provided", tableId)); Preconditions.checkState(changelogReplicationFactor == null, String.format("Invalid changelog configuration for table: %s. Changelog " + "must be enabled, when changelog replication factor is provided", tableId)); } }