49
49
import org .apache .log4j .LogManager ;
50
50
import org .apache .log4j .Logger ;
51
51
52
- import java .io .File ;
53
52
import java .io .IOException ;
54
53
import java .io .Serializable ;
55
54
import java .util .Arrays ;
@@ -76,10 +75,10 @@ public class HoodieTableMetaClient implements Serializable {
76
75
private static final long serialVersionUID = 1L ;
77
76
private static final Logger LOG = LogManager .getLogger (HoodieTableMetaClient .class );
78
77
public static final String METAFOLDER_NAME = ".hoodie" ;
79
- public static final String TEMPFOLDER_NAME = METAFOLDER_NAME + File . separator + ".temp" ;
80
- public static final String AUXILIARYFOLDER_NAME = METAFOLDER_NAME + File . separator + ".aux" ;
81
- public static final String BOOTSTRAP_INDEX_ROOT_FOLDER_PATH = AUXILIARYFOLDER_NAME + File . separator + ".bootstrap" ;
82
- public static final String HEARTBEAT_FOLDER_NAME = METAFOLDER_NAME + File . separator + ".heartbeat" ;
78
+ public static final String TEMPFOLDER_NAME = METAFOLDER_NAME + Path . SEPARATOR + ".temp" ;
79
+ public static final String AUXILIARYFOLDER_NAME = METAFOLDER_NAME + Path . SEPARATOR + ".aux" ;
80
+ public static final String BOOTSTRAP_INDEX_ROOT_FOLDER_PATH = AUXILIARYFOLDER_NAME + Path . SEPARATOR + ".bootstrap" ;
81
+ public static final String HEARTBEAT_FOLDER_NAME = METAFOLDER_NAME + Path . SEPARATOR + ".heartbeat" ;
83
82
public static final String BOOTSTRAP_INDEX_BY_PARTITION_FOLDER_PATH = BOOTSTRAP_INDEX_ROOT_FOLDER_PATH
84
83
+ Path .SEPARATOR + ".partitions" ;
85
84
public static final String BOOTSTRAP_INDEX_BY_FILE_ID_FOLDER_PATH = BOOTSTRAP_INDEX_ROOT_FOLDER_PATH + Path .SEPARATOR
@@ -205,7 +204,7 @@ public String getMetaAuxiliaryPath() {
205
204
* @return Heartbeat folder path.
206
205
*/
207
206
public static String getHeartbeatFolderPath (String basePath ) {
208
- return String .format ("%s%s%s" , basePath , File . separator , HEARTBEAT_FOLDER_NAME );
207
+ return String .format ("%s%s%s" , basePath , Path . SEPARATOR , HEARTBEAT_FOLDER_NAME );
209
208
}
210
209
211
210
/**
@@ -227,7 +226,7 @@ public String getBootstrapIndexByFileIdFolderNameFolderPath() {
227
226
*/
228
227
public String getArchivePath () {
229
228
String archiveFolder = tableConfig .getArchivelogFolder ();
230
- return getMetaPath () + "/" + archiveFolder ;
229
+ return getMetaPath () + Path . SEPARATOR + archiveFolder ;
231
230
}
232
231
233
232
/**
0 commit comments