Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4057

Duplicated code in IteratorUtil

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Duplicated code in https://github.com/apache/accumulo/blob/master/core/src/main/java/org/apache/accumulo/core/iterators/IteratorUtil.java#L236

        public static <K extends WritableComparable<?>,V extends Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorScope scope,
            SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio,
            IteratorEnvironment env, boolean useAccumuloClassLoader) throws IOException {
          List<IterInfo> iters = new ArrayList<IterInfo>(ssiList);
          Map<String,Map<String,String>> allOptions = new HashMap<String,Map<String,String>>();
          parseIteratorConfiguration(scope, iters, ssio, allOptions, conf);
          return loadIterators(source, iters, allOptions, env, useAccumuloClassLoader, conf.get(Property.TABLE_CLASSPATH));
        }
      
        public static <K extends WritableComparable<?>,V extends Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorScope scope,
            SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio,
            IteratorEnvironment env, boolean useAccumuloClassLoader, String classLoaderContext) throws IOException {
          List<IterInfo> iters = new ArrayList<IterInfo>(ssiList);
          Map<String,Map<String,String>> allOptions = new HashMap<String,Map<String,String>>();
          parseIteratorConfiguration(scope, iters, ssio, allOptions, conf);
          return loadIterators(source, iters, allOptions, env, useAccumuloClassLoader, classLoaderContext);
        }
      

      I thought I had commented on https://github.com/apache/accumulo/pull/51 about this, but maybe I forgot.

      Attachments

        Issue Links

          Activity

            People

              lstav Luis Tavarez
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h