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
The version of an index (property "compatVersion").
The default is version 2. Version 1 is supported for backward compatibility.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexFormatVersionintstatic IndexFormatVersiongetVersion(int version) booleanisAtLeast(IndexFormatVersion version) Returnstrueif this version is at least as high as the givenversion.static IndexFormatVersionmax(IndexFormatVersion o1, IndexFormatVersion o2) static IndexFormatVersionReturns the enum constant of this type with the specified name.static IndexFormatVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
V1
Index confirming to Oak version upto 1.0.8 -
V2
Index confirming to Oak version upto 1.0.9
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isAtLeast
Returnstrueif this version is at least as high as the givenversion.- Parameters:
version- the other version to compare.- Returns:
trueif this version is at least as high as the provided;falseotherwise.
-
getVersion
public int getVersion() -
getVersion
-
getDefault
-
max
-