Package com.apple.foundationdb.record
Enum IndexFetchMethod
- All Implemented Interfaces:
Serializable
,Comparable<IndexFetchMethod>
,java.lang.constant.Constable
An indicator for the index fetch method to use for a query or an index scan.
Possible values are:
SCAN_AND_FETCH
use regular index scan followed by fetchUSE_REMOTE_FETCH
use remote fetch feature from FDBUSE_REMOTE_FETCH_WITH_FALLBACK
use remote fetch ability with fallback to regular scan and fetch in case of failure. This is a safety measure meant to be used while the remote fetch mechanism is being tested
-
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 IndexFetchMethod
fromProto
(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PIndexFetchMethod indexFetchMethodProto) com.apple.foundationdb.record.planprotos.PIndexFetchMethod
toProto
(PlanSerializationContext serializationContext) static IndexFetchMethod
Returns the enum constant of this type with the specified name.static IndexFetchMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SCAN_AND_FETCH
-
USE_REMOTE_FETCH
-
USE_REMOTE_FETCH_WITH_FALLBACK
-
-
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
-
toProto
@Nonnull public com.apple.foundationdb.record.planprotos.PIndexFetchMethod toProto(@Nonnull PlanSerializationContext serializationContext) -
fromProto
@Nonnull public static IndexFetchMethod fromProto(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PIndexFetchMethod indexFetchMethodProto)
-