Java Code Examples for org.apache.tez.runtime.library.common.ConfigUtils#doesKeyQualify()
The following examples show how to use
org.apache.tez.runtime.library.common.ConfigUtils#doesKeyQualify() .
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: OrderedPartitionedKVOutputConfig.java From tez with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public Builder setAdditionalConfiguration(String key, String value) { Objects.requireNonNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(OrderedPartitionedKVOutput.getConfigurationKeySet(), TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 2
Source File: OrderedGroupedKVInputConfig.java From tez with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public Builder setAdditionalConfiguration(String key, String value) { Objects.requireNonNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(OrderedGroupedKVInput.getConfigurationKeySet(), TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 3
Source File: UnorderedKVOutputConfig.java From tez with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public Builder setAdditionalConfiguration(String key, String value) { Objects.requireNonNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(UnorderedKVOutput.getConfigurationKeySet(), TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 4
Source File: UnorderedKVInputConfig.java From tez with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public Builder setAdditionalConfiguration(String key, String value) { Objects.requireNonNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(UnorderedKVInput.getConfigurationKeySet(), TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 5
Source File: UnorderedPartitionedKVOutputConfig.java From tez with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public Builder setAdditionalConfiguration(String key, String value) { Objects.requireNonNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(UnorderedPartitionedKVOutput.getConfigurationKeySet(), TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 6
Source File: OnFileUnorderedKVOutputConfiguration.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public Builder setAdditionalConfiguration(String key, String value) { Preconditions.checkNotNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(OnFileUnorderedKVOutput.getConfigurationKeySet(), TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 7
Source File: ShuffledUnorderedKVInputConfiguration.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public Builder setAdditionalConfiguration(String key, String value) { Preconditions.checkNotNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(ShuffledUnorderedKVInput.getConfigurationKeySet(), TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 8
Source File: ShuffledMergedInputConfiguration.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public Builder setAdditionalConfiguration(String key, String value) { Preconditions.checkNotNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(ShuffledMergedInput.getConfigurationKeySet(), TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 9
Source File: OnFileUnorderedPartitionedKVOutputConfiguration.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public Builder setAdditionalConfiguration(String key, String value) { Preconditions.checkNotNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(OnFileUnorderedPartitionedKVOutput.getConfigurationKeySet(), TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }
Example 10
Source File: OnFileSortedOutputConfiguration.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public Builder setAdditionalConfiguration(String key, String value) { Preconditions.checkNotNull(key, "Key cannot be null"); if (ConfigUtils.doesKeyQualify(key, Lists.newArrayList(OnFileSortedOutput.getConfigurationKeySet(), TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes())) { if (value == null) { this.conf.unset(key); } else { this.conf.set(key, value); } } return this; }