@PublicApi public enum ReadType extends Enum<ReadType>
TachyonStorageType
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 Tachyon storage.
|
Modifier and Type | Method and Description |
---|---|
TachyonStorageType |
getTachyonStorageType() |
int |
getValue() |
boolean |
isCache() |
boolean |
isPromote() |
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
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 TachyonStorageType getTachyonStorageType()
TachyonStorageType
associated with this read typepublic int getValue()
public boolean isCache()
public boolean isPromote()
Copyright © 2015. All Rights Reserved.