| Enum Constant and Description |
|---|
AUTO
Automatic index selection.
|
BRIN
Block Range Index (BRIN).
|
BRIN_FB_BTREE
BRIN index with a B-Tree fallback mechanism.
|
BTREE
B-Tree index.
|
CUSTOM
Custom user-defined index.
|
GIN
Generalized Inverted Index (GIN).
|
GIN_FB_BTREE
GIN index with a B-Tree fallback mechanism.
|
GIN_TRGM_HSTORE
GIN index optimized for HSTORE columns using a global trigram cast.
|
NONE
No index applied.
|
TRIGRAM
Trigram index.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.SortedSet<java.lang.String> |
allStandardValues()
Returns an unmodifiable, alphabetically sorted set of all unique standard index names.
|
static java.util.Optional<IndexType> |
from(java.lang.String value)
Resolves the IndexType corresponding to the given string representation.
|
static IndexType |
from(java.lang.String value,
IndexType defaultValue)
Resolves the IndexType corresponding to the given string representation,
returning the specified fallback if not found or null.
|
java.lang.String |
getValue()
Gets the string representation of the index type.
|
boolean |
isCustom()
Identifies if this is a custom user-defined index type.
|
java.lang.String |
toString() |
static IndexType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IndexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexType AUTO
public static final IndexType NONE
public static final IndexType BTREE
public static final IndexType TRIGRAM
public static final IndexType BRIN
public static final IndexType BRIN_FB_BTREE
public static final IndexType GIN
public static final IndexType GIN_FB_BTREE
public static final IndexType GIN_TRGM_HSTORE
public static final IndexType CUSTOM
public static IndexType[] values()
for (IndexType c : IndexType.values()) System.out.println(c);
public static IndexType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
public boolean isCustom()
public static java.util.Optional<IndexType> from(java.lang.String value)
value - the string value of the index typepublic static IndexType from(java.lang.String value, IndexType defaultValue)
value - the string value of the index typedefaultValue - the fallback IndexType to return if unresolvedpublic static java.util.SortedSet<java.lang.String> allStandardValues()
public java.lang.String toString()
toString in class java.lang.Enum<IndexType>Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.