/** * Encode an iterator on the input for this job. * * @param job * the Hadoop job instance to be configured * @param cfg * the configuration of the iterator * @since 1.5.0 */ public static void addIterator(JobConf job, IteratorSetting cfg) { InputConfigurator.addIterator(CLASS, job, cfg); }
/** * Encode an iterator on the input for this job. * * @param job * the Hadoop job instance to be configured * @param cfg * the configuration of the iterator * @since 1.5.0 */ public static void addIterator(JobConf job, IteratorSetting cfg) { InputConfigurator.addIterator(CLASS, job, cfg); }
/** * Encode an iterator on the single input table for this job. * * @param job * the Hadoop job instance to be configured * @param cfg * the configuration of the iterator * @since 1.5.0 */ public static void addIterator(Job job, IteratorSetting cfg) { InputConfigurator.addIterator(CLASS, job.getConfiguration(), cfg); }
/** * Encode an iterator on the single input table for this job. * * @param job * the Hadoop job instance to be configured * @param cfg * the configuration of the iterator * @since 1.5.0 */ public static void addIterator(Job job, IteratorSetting cfg) { InputConfigurator.addIterator(CLASS, job.getConfiguration(), cfg); }
/** * Encode an iterator on the input for this job. * * @param implementingClass * the class whose name will be used as a prefix for the property configuration key * @param conf * the Hadoop configuration object to configure * @param cfg * the configuration of the iterator * @deprecated since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. * @since 1.5.0 */ @Deprecated public static void addIterator(Class<?> implementingClass, Configuration conf, IteratorSetting cfg) { org.apache.accumulo.core.client.mapreduce.lib.impl.InputConfigurator .addIterator(implementingClass, conf, cfg); }
private void addValidationIterator(final AccumuloStore accumuloStore, final Configuration conf) { if (accumuloStore.getProperties().getEnableValidatorIterator()) { final IteratorSetting itrSetting = accumuloStore .getKeyPackage().getIteratorFactory().getValidatorIteratorSetting(accumuloStore); if (null == itrSetting) { LOGGER.info("Not adding validation iterator as no validation functions are defined in the schema"); } else { LOGGER.info("Adding validation iterator"); InputConfigurator.addIterator(AccumuloInputFormat.class, conf, itrSetting); } } }
private void addAggregationIterator(final AccumuloStore accumuloStore, final Configuration conf) throws IteratorSettingException { if (accumuloStore.getSchema().isAggregationEnabled()) { // Add aggregator iterator to table for all scopes LOGGER.info("Adding aggregator iterator"); final IteratorSetting itrSetting = accumuloStore .getKeyPackage().getIteratorFactory().getAggregatorIteratorSetting(accumuloStore); InputConfigurator.addIterator(AccumuloInputFormat.class, conf, itrSetting); } else { LOGGER.info("Not adding aggregator iterator as aggregation is not enabled"); } }
.getElementPreAggregationFilterIteratorSetting(view, this); if (null != elementPreFilter) { InputConfigurator.addIterator(AccumuloInputFormat.class, conf, elementPreFilter); LOGGER.info("Added pre-aggregation filter iterator of {}", elementPreFilter); .getElementPostAggregationFilterIteratorSetting(view, this); if (null != elementPostFilter) { InputConfigurator.addIterator(AccumuloInputFormat.class, conf, elementPostFilter); LOGGER.info("Added post-aggregation filter iterator of {}", elementPostFilter); .getEdgeEntityDirectionFilterIteratorSetting(graphFilters); if (null != edgeEntityDirFilter) { InputConfigurator.addIterator(AccumuloInputFormat.class, conf, edgeEntityDirFilter); LOGGER.info("Added edge direction filter iterator of {}", edgeEntityDirFilter);
.getQueryTimeAggregatorIteratorSetting(operation.getView(), accumuloStore); if (null != queryTimeAggregator) { InputConfigurator.addIterator(AccumuloInputFormat.class, conf, queryTimeAggregator); .getElementPropertyRangeQueryFilter(derivedOperation); if (null != propertyFilter) { InputConfigurator.addIterator(AccumuloInputFormat.class, conf, propertyFilter);