core/src/main/java/org/apache/carbondata/core/datamap/TableDataMap.java
/**
   * This method is used from any machine after it is distributed. It takes the distributable object
   * to prune the filters.
   *
   * @param distributable
   * @param filterExp
   * @return
   */
This method is used from any machine after it is distributed. It takes the distributable object
to prune the filters.

@param distributable
@param filterExp
@return
This method is used from any machine after it is distributed . It takes the distributable object to prune the filters . @param distributable @param filterExp @return
public List<ExtendedBlocklet> prune(DataMapDistributable distributable,
      FilterResolverIntf filterExp, List<String> partitions) throws IOException {
    List<ExtendedBlocklet> detailedBlocklets = new ArrayList<>();
    List<Blocklet> blocklets = new ArrayList<>();
    List<DataMap> dataMaps = dataMapFactory.getDataMaps(distributable);
    for (DataMap dataMap : dataMaps) {
      blocklets.addAll(dataMap.prune(filterExp, partitions));
    }
    for (Blocklet blocklet: blocklets) {
      ExtendedBlocklet detailedBlocklet =
          blockletDetailsFetcher.getExtendedBlocklet(blocklet, distributable.getSegmentId());
      detailedBlocklet.setSegmentId(distributable.getSegmentId());
      detailedBlocklets.add(detailedBlocklet);
    }
    return detailedBlocklets;
  }
public List < ExtendedBlocklet > prune ( DataMapDistributable distributable , FilterResolverIntf filterExp , List < String > partitions ) throws IOException { List < ExtendedBlocklet > detailedBlocklets = new ArrayList < > ( ) ; List < Blocklet > blocklets = new ArrayList < > ( ) ; List < DataMap > dataMaps = dataMapFactory . getDataMaps ( distributable ) ; for ( DataMap dataMap : dataMaps ) { blocklets . addAll ( dataMap . prune ( filterExp , partitions ) ) ; } for ( Blocklet blocklet : blocklets ) { ExtendedBlocklet detailedBlocklet = blockletDetailsFetcher . getExtendedBlocklet ( blocklet , distributable . getSegmentId ( ) ) ; detailedBlocklet . setSegmentId ( distributable . getSegmentId ( ) ) ; detailedBlocklets . add ( detailedBlocklet ) ; } return detailedBlocklets ; }
This method is used from any machine after it is distributed.
This method is used from any machine after it is distributed .