public enum ReadType extends Enum<ReadType>
Enum Constant and Description |
---|
CACHE
Read the file and cache it.
|
CACHE_PROMOTE
If the block is on local Tachyon space but not on top storage layer, promote the block to top
storage layer after reading.
|
NO_CACHE
Read the file and but do not cache it explicitly.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Return the value of the read type
|
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 int getValue()
public boolean isCache()
public boolean isPromote()
Copyright © 2015. All Rights Reserved.