Class SysTimeVersionController
- java.lang.Object
-
- org.apache.iotdb.db.engine.version.SysTimeVersionController
-
- All Implemented Interfaces:
VersionController
public class SysTimeVersionController extends java.lang.Object implements VersionController
SysTimeVersionController uses system timestamp as the version number.
-
-
Field Summary
Fields Modifier and Type Field Description static SysTimeVersionControllerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrVersion()Get the current version number.longnextVersion()Get the next version number.
-
-
-
Field Detail
-
INSTANCE
public static final SysTimeVersionController INSTANCE
-
-
Method Detail
-
nextVersion
public long nextVersion()
Description copied from interface:VersionControllerGet the next version number.- Specified by:
nextVersionin interfaceVersionController- Returns:
- the next version number.
-
currVersion
public long currVersion()
Description copied from interface:VersionControllerGet the current version number.- Specified by:
currVersionin interfaceVersionController- Returns:
- the current version number.
-
-