@PublicApi public enum WriteType extends Enum<WriteType>
TachyonStorageType
and UnderStorageType
.Enum Constant and Description |
---|
ASYNC_THROUGH
Deprecated.
|
CACHE_THROUGH
Write the file synchronously to the under fs, and also try to write to the highest tier in a
worker's Tachyon storage.
|
MUST_CACHE
Write the file, guaranteeing the data is written to Tachyon storage or failing the operation.
|
THROUGH
Write the file synchronously to the under fs, skipping Tachyon storage.
|
TRY_CACHE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TachyonStorageType |
getTachyonStorageType() |
UnderStorageType |
getUnderStorageType() |
int |
getValue() |
boolean |
isAsync()
Deprecated.
|
boolean |
isCache() |
boolean |
isMustCache() |
boolean |
isThrough() |
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
public static final WriteType CACHE_THROUGH
public static final WriteType THROUGH
@Deprecated public static final WriteType ASYNC_THROUGH
TachyonLineageFileSystem
for asynchronous data persistence.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 TachyonStorageType getTachyonStorageType()
TachyonStorageType
which is associated with this modepublic UnderStorageType getUnderStorageType()
UnderStorageType
which is associated with this modepublic int getValue()
@Deprecated public boolean isAsync()
TachyonLineageFileSystem
for asynchronous data persistence.public boolean isCache()
public boolean isMustCache()
public boolean isThrough()
Copyright © 2015. All Rights Reserved.