@PublicApi @ThreadSafe public enum LoadMetadataType extends Enum<LoadMetadataType>
Enum Constant and Description |
---|
Always
Always load metadata when listing status on a directory.
|
Never
Never loads metadata.
|
Once
Loads metadata only at the first time of listing status on a directory.
|
Modifier and Type | Method and Description |
---|---|
static LoadMetadataType |
fromThrift(LoadMetadataTType loadMetadataTType) |
int |
getValue() |
static LoadMetadataTType |
toThrift(LoadMetadataType loadMetadataType) |
static LoadMetadataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadMetadataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadMetadataType Never
public static final LoadMetadataType Once
public static final LoadMetadataType Always
public static LoadMetadataType[] values()
for (LoadMetadataType c : LoadMetadataType.values()) System.out.println(c);
public static LoadMetadataType 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 static LoadMetadataTType toThrift(LoadMetadataType loadMetadataType)
loadMetadataType
- the LoadMetadataType
@Nullable public static LoadMetadataType fromThrift(LoadMetadataTType loadMetadataTType)
loadMetadataTType
- the thrift representation of loadMetadataTypeLoadMetadataType
Copyright © 2023. All Rights Reserved.