public class SimpleFileVersionController extends Object implements VersionController
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FILE_PREFIX |
static String |
UPGRADE_DIR |
| 构造器和说明 |
|---|
SimpleFileVersionController(String directoryPath)
only used for upgrading
|
SimpleFileVersionController(String directoryPath,
long timePartitionId) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
currVersion()
Test only method, no need for concurrency.
|
static long |
getSaveInterval() |
long |
getTimePartitionId() |
long |
nextVersion()
Get the next version number.
|
static void |
setSaveInterval(long saveInterval) |
void |
setTimePartitionId(long timePartitionId) |
public SimpleFileVersionController(String directoryPath, long timePartitionId) throws IOException
IOExceptionpublic SimpleFileVersionController(String directoryPath) throws IOException
IOExceptionpublic static long getSaveInterval()
public static void setSaveInterval(long saveInterval)
public long getTimePartitionId()
public void setTimePartitionId(long timePartitionId)
public long nextVersion()
VersionControllernextVersion 在接口中 VersionControllerpublic long currVersion()
currVersion 在接口中 VersionControllerCopyright © 2022 The Apache Software Foundation. All rights reserved.