Package com.linkedin.venice.meta
Enum Class ExternalStorageReadMode
- All Implemented Interfaces:
VeniceEnumValue,Serializable,Comparable<ExternalStorageReadMode>,Constable
public enum ExternalStorageReadMode
extends Enum<ExternalStorageReadMode>
implements VeniceEnumValue
Store-level read routing for clients backed by both Venice local storage and a configured external storage system.
Applies to the store as a whole, not per-version. Mirrors the
externalStorageReadMode field staged on
StoreProperties (StoreMetaValue v44) by PR #2814.
Field plumbing only at the OSS Venice layer; the actual routing decisions live in proprietary client code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient reads from both Venice and the external storage in parallel; the external-storage result is compared against the Venice result for correctness metrics but never reaches the user.Client issues reads against both Venice and the external storage in parallel and returns the first response.All user-data reads served from the external storage.Default. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static ExternalStorageReadModevalueOf(int value) Returns the enum constant of this class with the specified name.static ExternalStorageReadModeReturns the enum constant of this class with the specified name.static ExternalStorageReadMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VENICE_ONLY
Default. All reads served from Venice local storage. No external-storage involvement. -
DUAL_MODE_CONSISTENCY_CHECK
Client reads from both Venice and the external storage in parallel; the external-storage result is compared against the Venice result for correctness metrics but never reaches the user. Used to validate dual-write correctness before cutover. -
DUAL_MODE_EARLY_RETURN
Client issues reads against both Venice and the external storage in parallel and returns the first response. On miss from the early responder, the slower one is awaited as a fallback. Enabled only after consistency checking has validated zero divergence over a sustained window. -
EXTERNAL_ONLY
All user-data reads served from the external storage. Venice continues to serve metadata (catalog, schemas, compression dictionary) and acts as the metadata/CDC path.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()- Specified by:
getValuein interfaceVeniceEnumValue
-