类 SimpleFileVersionController

  • 所有已实现的接口:
    VersionController

    public class SimpleFileVersionController
    extends java.lang.Object
    implements VersionController
    SimpleFileVersionController uses a local file and its file name to store the version.
    • 字段详细资料

      • FILE_PREFIX

        public static final java.lang.String FILE_PREFIX
        另请参阅:
        常量字段值
      • UPGRADE_DIR

        public static final java.lang.String UPGRADE_DIR
        另请参阅:
        常量字段值
    • 构造器详细资料

      • 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)
      • currVersion

        public long currVersion()
        Test only method, no need for concurrency.
        指定者:
        currVersion 在接口中 VersionController
        返回:
        the current version.