public class ExternalFilePathUtil extends Object
| Constructor and Description |
|---|
ExternalFilePathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
appendCommitTimeAndExternalFileMarker(String filePath,
String commitTime)
Appends the commit time and external file marker to the file path.
|
static boolean |
isExternallyCreatedFile(String fileName)
Checks if the file name was created by an external system by checking for the external file marker at the end of the file name.
|
public static String appendCommitTimeAndExternalFileMarker(String filePath, String commitTime)
filePath - The original file pathcommitTime - The time of the commit that added this file to the tablepublic static boolean isExternallyCreatedFile(String fileName)
fileName - The file nameCopyright © 2024 The Apache Software Foundation. All rights reserved.