Enum IndexFormatVersion

java.lang.Object
java.lang.Enum<IndexFormatVersion>
org.apache.jackrabbit.oak.plugins.index.lucene.IndexFormatVersion
All Implemented Interfaces:
Serializable, Comparable<IndexFormatVersion>, java.lang.constant.Constable

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

    • 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 Details

    • values

      public static IndexFormatVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IndexFormatVersion valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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()
    • getVersion

      public static IndexFormatVersion getVersion(int version)
    • getDefault

      public static IndexFormatVersion getDefault()
    • max