类 SimpleFileVersionController
- java.lang.Object
-
- org.apache.iotdb.db.engine.version.SimpleFileVersionController
-
- 所有已实现的接口:
VersionController
public class SimpleFileVersionController extends java.lang.Object implements VersionController
SimpleFileVersionController uses a local file and its file name to store the version.
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
FILE_PREFIX
static java.lang.String
UPGRADE_DIR
-
构造器概要
构造器 构造器 说明 SimpleFileVersionController(java.lang.String directoryPath)
only used for upgradingSimpleFileVersionController(java.lang.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)
-
-
-
构造器详细资料
-
SimpleFileVersionController
public SimpleFileVersionController(java.lang.String directoryPath, long timePartitionId) throws java.io.IOException
- 抛出:
java.io.IOException
-
SimpleFileVersionController
public SimpleFileVersionController(java.lang.String directoryPath) throws java.io.IOException
only used for upgrading- 抛出:
java.io.IOException
-
-
方法详细资料
-
getSaveInterval
public static long getSaveInterval()
-
setSaveInterval
public static void setSaveInterval(long saveInterval)
-
getTimePartitionId
public long getTimePartitionId()
-
setTimePartitionId
public void setTimePartitionId(long timePartitionId)
-
nextVersion
public long nextVersion()
从接口复制的说明:VersionController
Get the next version number.- 指定者:
nextVersion
在接口中VersionController
- 返回:
- the next version number.
-
currVersion
public long currVersion()
Test only method, no need for concurrency.- 指定者:
currVersion
在接口中VersionController
- 返回:
- the current version.
-
-