@PublicApi @ThreadSafe public enum WriteType extends Enum<WriteType>
Enum Constant and Description |
---|
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
Write the file, guaranteeing the data is written to Alluxio storage or failing the operation.
|
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
MUST_CACHE or CACHE_THROUGH depending on your data persistence
requirements. |
Modifier and Type | Method and Description |
---|---|
static WriteType |
fromProto(alluxio.grpc.WritePType writePType) |
alluxio.client.AlluxioStorageType |
getAlluxioStorageType() |
alluxio.client.UnderStorageType |
getUnderStorageType() |
int |
getValue() |
boolean |
isAsync() |
boolean |
isCache() |
boolean |
isThrough() |
alluxio.grpc.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.
|
public static final WriteType MUST_CACHE
@Deprecated public static final WriteType TRY_CACHE
MUST_CACHE
or CACHE_THROUGH
depending on your data persistence
requirements.public static final WriteType CACHE_THROUGH
public static final WriteType 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 alluxio.client.AlluxioStorageType getAlluxioStorageType()
AlluxioStorageType
which is associated with this modepublic alluxio.client.UnderStorageType getUnderStorageType()
UnderStorageType
which is associated with this modepublic int getValue()
public boolean isAsync()
public boolean isCache()
MUST_CACHE
, CACHE_THROUGH
, TRY_CACHE
),
false otherwisepublic boolean isThrough()
CACHE_THROUGH
or THROUGH
), false otherwisepublic static WriteType fromProto(alluxio.grpc.WritePType writePType)
writePType
- proto typepublic alluxio.grpc.WritePType toProto()
Copyright © 2023. All Rights Reserved.