public static Path getSegmentPath(
            String basePath,
            TieredStoragePartitionId partitionId,
            int subpartitionId,
            long segmentId) {
        String subpartitionPath = getSubpartitionPath(basePath, partitionId, subpartitionId);
        return new Path(subpartitionPath, SEGMENT_FILE_PREFIX + segmentId);
    }
@Test
    void testGetSegmentPath() {
        TieredStoragePartitionId partitionId =
                TieredStorageIdMappingUtils.convertId(new ResultPartitionID());
        int subpartitionId = 0;
        int segmentId = 1;

        String segmentPath =
                SegmentPartitionFile.getSegmentPath(
                                tempFolder.getPath(), partitionId, subpartitionId, segmentId)
                        .toString();

        File partitionFile =
                new File(
                        tempFolder.getPath(),
                        TieredStorageIdMappingUtils.convertId(partitionId).toString());
        File subpartitionFile = new File(partitionFile, String.valueOf(subpartitionId));
        assertThat(segmentPath)
                .isEqualTo(new File(subpartitionFile, SEGMENT_FILE_PREFIX + segmentId).toString());
    }