Class AccumuloDataVersion

java.lang.Object
org.apache.accumulo.server.AccumuloDataVersion

public class AccumuloDataVersion extends Object
Class representing the version of data stored in Accumulo. This version is separate but related to the file specific version in RFile. A version change to RFile will reflect a version change to the AccumuloDataVersion. But a version change to the AccumuloDataVersion may not affect the version number in RFile. For example, changes made to other parts of Accumulo that affects how data is stored, like the metadata table, would change the AccumuloDataVersion number here but not in RFile. This number is stored in HDFS under Constants.VERSION_DIR. This class is used for checking the version during server startup and upgrades.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<Integer>
     
    static final int
    version (9) reflects changes to crypto that resulted in RFiles and WALs being serialized differently in version 2.0.0.
    static final int
    version (10) reflects changes to how root tablet metadata is serialized in zookeeper starting with 2.1.
    static final int
    version (8) reflects changes to RFile index (ACCUMULO-1124) AND the change to WAL tracking in ZK in version 1.8.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    get()
    Get the current Accumulo Data Version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ROOT_TABLET_META_CHANGES

      public static final int ROOT_TABLET_META_CHANGES
      version (10) reflects changes to how root tablet metadata is serialized in zookeeper starting with 2.1. See RootTabletMetadata.
      See Also:
    • CRYPTO_CHANGES

      public static final int CRYPTO_CHANGES
      version (9) reflects changes to crypto that resulted in RFiles and WALs being serialized differently in version 2.0.0. Also RFiles in 2.0.0 may have summary data.
      See Also:
    • SHORTEN_RFILE_KEYS

      public static final int SHORTEN_RFILE_KEYS
      version (8) reflects changes to RFile index (ACCUMULO-1124) AND the change to WAL tracking in ZK in version 1.8.0
      See Also:
    • CAN_RUN

      public static final Set<Integer> CAN_RUN
  • Constructor Details

    • AccumuloDataVersion

      public AccumuloDataVersion()
  • Method Details

    • get

      public static int get()
      Get the current Accumulo Data Version. See Javadoc of static final integers for a detailed description of that version.
      Returns:
      integer representing the Accumulo Data Version