processing/src/main/java/org/apache/carbondata/processing/util/CarbonLoaderUtil.java
/**
   * This method will get the store location for the given path, segment id and partition id
   */
This method will get the store location for the given path, segment id and partition id
This method will get the store location for the given path segment id and partition id
public static void checkAndCreateCarbonDataLocation(String segmentId, CarbonTable carbonTable) {
    CarbonTableIdentifier carbonTableIdentifier = carbonTable.getCarbonTableIdentifier();
    CarbonTablePath carbonTablePath =
        CarbonStorePath.getCarbonTablePath(carbonTable.getTablePath(), carbonTableIdentifier);
    String segmentFolder = carbonTablePath.getCarbonDataDirectoryPath("0", segmentId);
    CarbonUtil.checkAndCreateFolder(segmentFolder);
  }
public static void checkAndCreateCarbonDataLocation ( String segmentId , CarbonTable carbonTable ) { CarbonTableIdentifier carbonTableIdentifier = carbonTable . getCarbonTableIdentifier ( ) ; CarbonTablePath carbonTablePath = CarbonStorePath . getCarbonTablePath ( carbonTable . getTablePath ( ) , carbonTableIdentifier ) ; String segmentFolder = carbonTablePath . getCarbonDataDirectoryPath ( "0" , segmentId ) ; CarbonUtil . checkAndCreateFolder ( segmentFolder ) ; }
This method will get the store location for the given path, segment id and partition id
This method will get the store location for the given path segment id and partition id