@PublicApi @ThreadSafe public enum ReadType extends Enum<ReadType>
AlluxioStorageType and UnderStorageType.| Enum Constant and Description |
|---|
CACHE
Read the file and cache it in the highest tier of a local worker.
|
CACHE_PROMOTE
Read the file and cache it in a local worker.
|
NO_CACHE
Read the file and skip Alluxio storage.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadType |
fromProto(alluxio.grpc.ReadPType readPType) |
AlluxioStorageType |
getAlluxioStorageType() |
int |
getValue() |
boolean |
isCache() |
boolean |
isPromote() |
alluxio.grpc.ReadPType |
toProto() |
static ReadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadType NO_CACHE
public static final ReadType CACHE
CACHE_PROMOTE for more
optimized performance with tiered storage.public static final ReadType CACHE_PROMOTE
public static ReadType[] values()
for (ReadType c : ReadType.values()) System.out.println(c);
public static ReadType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic AlluxioStorageType getAlluxioStorageType()
AlluxioStorageType associated with this read typepublic int getValue()
public boolean isCache()
CACHE, false otherwisepublic boolean isPromote()
CACHE_PROMOTE, false otherwisepublic static ReadType fromProto(alluxio.grpc.ReadPType readPType)
readPType - proto typepublic alluxio.grpc.ReadPType toProto()
Copyright © 2024. All Rights Reserved.