Class SimpleFileVersionController

  • All Implemented Interfaces:
    VersionController

    public class SimpleFileVersionController
    extends java.lang.Object
    implements VersionController
    SimpleFileVersionController uses a local file and its file name to store the version.
    • Constructor Detail

      • SimpleFileVersionController

        public SimpleFileVersionController​(java.lang.String directoryPath,
                                           long timePartitionId)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • SimpleFileVersionController

        public SimpleFileVersionController​(java.lang.String directoryPath)
                                    throws java.io.IOException
        only used for upgrading
        Throws:
        java.io.IOException
    • Method Detail

      • 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.
        Specified by:
        currVersion in interface VersionController
        Returns:
        the current version.