core/src/main/java/org/apache/carbondata/core/datamap/TableDataMap.java
/**
   * This is used for making the datamap distributable.
   * It takes the valid segments and returns all the datamaps as distributable objects so that
   * it can be distributed across machines.
   *
   * @return
   */
This is used for making the datamap distributable.
It takes the valid segments and returns all the datamaps as distributable objects so that
it can be distributed across machines.

@return
This is used for making the datamap distributable . It takes the valid segments and returns all the datamaps as distributable objects so that it can be distributed across machines . @return
public List<DataMapDistributable> toDistributable(List<String> segmentIds) throws IOException {
    List<DataMapDistributable> distributables = new ArrayList<>();
    for (String segmentsId : segmentIds) {
      List<DataMapDistributable> list = dataMapFactory.toDistributable(segmentsId);
      for (DataMapDistributable distributable: list) {
        distributable.setDataMapName(dataMapName);
        distributable.setSegmentId(segmentsId);
        distributable.setTablePath(identifier.getTablePath());
        distributable.setDataMapFactoryClass(dataMapFactory.getClass().getName());
      }
      distributables.addAll(list);
    }
    return distributables;
  }
public List < DataMapDistributable > toDistributable ( List < String > segmentIds ) throws IOException { List < DataMapDistributable > distributables = new ArrayList < > ( ) ; for ( String segmentsId : segmentIds ) { List < DataMapDistributable > list = dataMapFactory . toDistributable ( segmentsId ) ; for ( DataMapDistributable distributable : list ) { distributable . setDataMapName ( dataMapName ) ; distributable . setSegmentId ( segmentsId ) ; distributable . setTablePath ( identifier . getTablePath ( ) ) ; distributable . setDataMapFactoryClass ( dataMapFactory . getClass ( ) . getName ( ) ) ; } distributables . addAll ( list ) ; } return distributables ; }
This is used for making the datamap distributable.
This is used for making the datamap distributable .