core/src/main/java/org/apache/carbondata/core/datamap/TableDataMap.java
/**
   * Pass the valid segments and prune the datamap using filter expression
   *
   * @param segmentIds
   * @param filterExp
   * @return
   */
Pass the valid segments and prune the datamap using filter expression
@param segmentIds
@param filterExp
@return
Pass the valid segments and prune the datamap using filter expression @param segmentIds @param filterExp @return
public List<ExtendedBlocklet> prune(List<String> segmentIds, FilterResolverIntf filterExp,
      List<String> partitions) throws IOException {
    List<ExtendedBlocklet> blocklets = new ArrayList<>();
    for (String segmentId : segmentIds) {
      List<Blocklet> pruneBlocklets = new ArrayList<>();
      List<DataMap> dataMaps = dataMapFactory.getDataMaps(segmentId);
      for (DataMap dataMap : dataMaps) {
        pruneBlocklets.addAll(dataMap.prune(filterExp, partitions));
      }
      blocklets.addAll(addSegmentId(blockletDetailsFetcher
          .getExtendedBlocklets(pruneBlocklets, segmentId), segmentId));
    }
    return blocklets;
  }
public List < ExtendedBlocklet > prune ( List < String > segmentIds , FilterResolverIntf filterExp , List < String > partitions ) throws IOException { List < ExtendedBlocklet > blocklets = new ArrayList < > ( ) ; for ( String segmentId : segmentIds ) { List < Blocklet > pruneBlocklets = new ArrayList < > ( ) ; List < DataMap > dataMaps = dataMapFactory . getDataMaps ( segmentId ) ; for ( DataMap dataMap : dataMaps ) { pruneBlocklets . addAll ( dataMap . prune ( filterExp , partitions ) ) ; } blocklets . addAll ( addSegmentId ( blockletDetailsFetcher . getExtendedBlocklets ( pruneBlocklets , segmentId ) , segmentId ) ) ; } return blocklets ; }
Pass the valid segments and prune the datamap using filter expression
 @param segmentIds
 @param filterExp
 @return
Pass the valid segments and prune the datamap using filter expression @param segmentIds @param filterExp @return