@PublicApi @ThreadSafe public enum WriteType extends Enum<WriteType>
Enum Constant and Description |
---|
ASYNC_THROUGH
Deprecated.
This write type is deprecated as of v3.0 and not recommended for use.
|
CACHE_THROUGH
Write the file synchronously to the under fs, and also try to write to the highest tier in a
worker's Alluxio storage.
|
MUST_CACHE
Deprecated.
This write type is deprecated as of v3.0 and not recommended for use.
|
NONE
Do not store the data in Alluxio or Under Storage.
|
THROUGH
Write the file synchronously to the under fs, skipping Alluxio storage.
|
TRY_CACHE
Deprecated.
This write type is deprecated as of v0.8 and not recommended for use. Use either
CACHE_THROUGH or THROUGH depending on your data persistence
requirements. |
Modifier and Type | Method and Description |
---|---|
static WriteType |
fromProto(WritePType writePType) |
AlluxioStorageType |
getAlluxioStorageType() |
UnderStorageType |
getUnderStorageType() |
int |
getValue() |
boolean |
isCache() |
boolean |
isThrough() |
WritePType |
toProto() |
static WriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final WriteType MUST_CACHE
@Deprecated public static final WriteType TRY_CACHE
CACHE_THROUGH
or THROUGH
depending on your data persistence
requirements.public static final WriteType CACHE_THROUGH
public static final WriteType THROUGH
@Deprecated public static final WriteType ASYNC_THROUGH
public static final WriteType NONE
public static WriteType[] values()
for (WriteType c : WriteType.values()) System.out.println(c);
public static WriteType 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
which is associated with this modepublic UnderStorageType getUnderStorageType()
UnderStorageType
which is associated with this modepublic int getValue()
public boolean isCache()
CACHE_THROUGH
, TRY_CACHE
, false otherwisepublic boolean isThrough()
CACHE_THROUGH
or THROUGH
), false otherwisepublic static WriteType fromProto(WritePType writePType)
writePType
- proto typepublic WritePType toProto()
Copyright © 2023. All Rights Reserved.