carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #333: [CARBONDATA-471]Optimized no kettle ...
Date Fri, 02 Dec 2016 05:20:01 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/333#discussion_r90588408
  
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/newflow/steps/InputProcessorStepImpl.java
---
    @@ -122,24 +139,52 @@ private boolean internalHasNext() {
           if (!hasNext) {
             // Check next iterator is available in the list.
             if (counter < inputIterators.size()) {
    +          // close the old iterator
    +          currentIterator.close();
               // Get the next iterator from the list.
               currentIterator = inputIterators.get(counter++);
    +          // Initialize the new iterator
    +          currentIterator.initialize();
               hasNext = internalHasNext();
             }
           }
           return hasNext;
         }
     
    -    @Override
    -    public CarbonRowBatch next() {
    -      // Create batch and fill it.
    -      CarbonRowBatch carbonRowBatch = new CarbonRowBatch();
    -      int count = 0;
    -      while (internalHasNext() && count < batchSize) {
    -        carbonRowBatch.addRow(new CarbonRow(rowParser.parseRow(currentIterator.next())));
    -        count++;
    +    @Override public CarbonRowBatch next() {
    --- End diff --
    
    put override to previous line


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message