jackylk commented on a change in pull request #3568: [CARBONDATA-3658] Prune 
and Cache only Matched partitioned segments for filter on Partitioned table
URL: https://github.com/apache/carbondata/pull/3568#discussion_r365521952
 
 

 ##########
 File path: 
core/src/main/java/org/apache/carbondata/core/datamap/dev/DataMapFactory.java
 ##########
 @@ -81,19 +82,20 @@ public abstract DataMapBuilder createBuilder(Segment 
segment, String shardName,
   /**
    * Get the datamap for all segments
    */
-  public Map<Segment, List<CoarseGrainDataMap>> getDataMaps(List<Segment> 
segments)
-      throws IOException {
+  public Map<Segment, List<CoarseGrainDataMap>> getDataMaps(List<Segment> 
segments,
+      List<PartitionSpec> partitions) throws IOException {
     Map<Segment, List<CoarseGrainDataMap>> dataMaps = new HashMap<>();
     for (Segment segment : segments) {
-      dataMaps.put(segment, (List<CoarseGrainDataMap>) 
this.getDataMaps(segment));
+      dataMaps.put(segment, (List<CoarseGrainDataMap>) 
this.getDataMaps(segment, partitions));
     }
     return dataMaps;
   }
 
   /**
    * Get the datamap for segmentId
    */
-  public abstract List<T> getDataMaps(Segment segment) throws IOException;
+  public abstract List<T> getDataMaps(Segment segment, List<PartitionSpec> 
partitions)
 
 Review comment:
   suggest to add one more interface instead of modifying existing one

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to