Enum IndexFormatVersion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IndexFormatVersion>

    public enum IndexFormatVersion
    extends java.lang.Enum<IndexFormatVersion>
    The version of an index (property "compatVersion"). The default is version 2. Version 1 is supported for backward compatibility.
    • Enum Constant Detail

      • V1

        public static final IndexFormatVersion V1
        Index confirming to Oak version upto 1.0.8
      • V2

        public static final IndexFormatVersion V2
        Index confirming to Oak version upto 1.0.9
    • Method Detail

      • values

        public static IndexFormatVersion[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IndexFormatVersion c : IndexFormatVersion.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IndexFormatVersion valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isAtLeast

        public boolean isAtLeast​(IndexFormatVersion version)
        Returns true if this version is at least as high as the given version.
        Parameters:
        version - the other version to compare.
        Returns:
        true if this version is at least as high as the provided; false otherwise.
      • getVersion

        public int getVersion()