use of org.apache.carbondata.core.util.path.CarbonStorePath in project carbondata by apache.
the class DeleteLoadFolders method getSegmentPath.
/**
* returns segment path
*
* @param dbName
* @param tableName
* @param storeLocation
* @param partitionId
* @param oneLoad
* @return
*/
private static String getSegmentPath(String dbName, String tableName, String storeLocation, int partitionId, LoadMetadataDetails oneLoad) {
CarbonTablePath carbon = new CarbonStorePath(storeLocation).getCarbonTablePath(new CarbonTableIdentifier(dbName, tableName, ""));
String segmentId = oneLoad.getLoadName();
return carbon.getCarbonDataDirectoryPath("" + partitionId, segmentId);
}
Aggregations