core/src/main/java/org/apache/carbondata/core/datamap/TableDataMap.java
/**
   * Method to prune the segments based on task min/max values
   *
   * @param segmentIds
   * @param filterExp
   * @return
   * @throws IOException
   */
Method to prune the segments based on task min/max values
@param segmentIds
@param filterExp
@return
@throws IOException
Method to prune the segments based on task min / max values @param segmentIds @param filterExp @return @throws IOException
public List<String> pruneSegments(List<String> segmentIds, FilterResolverIntf filterExp)
      throws IOException {
    List<String> prunedSegments = new ArrayList<>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
    for (String segmentId : segmentIds) {
      List<DataMap> dataMaps = dataMapFactory.getDataMaps(segmentId);
      for (DataMap dataMap : dataMaps) {
        if (dataMap.isScanRequired(filterExp)) {
          prunedSegments.add(segmentId);
          break;
        }
      }
    }
    return prunedSegments;
  }
public List < String > pruneSegments ( List < String > segmentIds , FilterResolverIntf filterExp ) throws IOException { List < String > prunedSegments = new ArrayList < > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; for ( String segmentId : segmentIds ) { List < DataMap > dataMaps = dataMapFactory . getDataMaps ( segmentId ) ; for ( DataMap dataMap : dataMaps ) { if ( dataMap . isScanRequired ( filterExp ) ) { prunedSegments . add ( segmentId ) ; break ; } } } return prunedSegments ; }
Method to prune the segments based on task min/max values
 @param segmentIds
 @param filterExp
 @return
 @throws IOException
Method to prune the segments based on task min / max values @param segmentIds @param filterExp @return @throws IOException
// If any one task in a given segment contains the data that means the segment need to // be scanned and we need to validate further data maps in the same segment