Enum WorkloadCharacteristics.AccessPattern
- java.lang.Object
-
- java.lang.Enum<WorkloadCharacteristics.AccessPattern>
-
- io.github.dhruv1110.jcachex.profiles.WorkloadCharacteristics.AccessPattern
-
- All Implemented Interfaces:
Serializable
,Comparable<WorkloadCharacteristics.AccessPattern>
- Enclosing class:
- WorkloadCharacteristics
public static enum WorkloadCharacteristics.AccessPattern extends Enum<WorkloadCharacteristics.AccessPattern>
Enum representing different access patterns.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MIXED
Mixed access patternRANDOM
Random access pattern - requires fast lookupSEQUENTIAL
Sequential access pattern - good for prefetchingSPATIAL_LOCALITY
Spatial locality - nearby items accessed togetherTEMPORAL_LOCALITY
Temporal locality - recent items accessed again soon
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WorkloadCharacteristics.AccessPattern
valueOf(String name)
Returns the enum constant of this type with the specified name.static WorkloadCharacteristics.AccessPattern[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEQUENTIAL
public static final WorkloadCharacteristics.AccessPattern SEQUENTIAL
Sequential access pattern - good for prefetching
-
RANDOM
public static final WorkloadCharacteristics.AccessPattern RANDOM
Random access pattern - requires fast lookup
-
TEMPORAL_LOCALITY
public static final WorkloadCharacteristics.AccessPattern TEMPORAL_LOCALITY
Temporal locality - recent items accessed again soon
-
SPATIAL_LOCALITY
public static final WorkloadCharacteristics.AccessPattern SPATIAL_LOCALITY
Spatial locality - nearby items accessed together
-
MIXED
public static final WorkloadCharacteristics.AccessPattern MIXED
Mixed access pattern
-
-
Method Detail
-
values
public static WorkloadCharacteristics.AccessPattern[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WorkloadCharacteristics.AccessPattern c : WorkloadCharacteristics.AccessPattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkloadCharacteristics.AccessPattern 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 nameNullPointerException
- if the argument is null
-
-