Enum DatasetOptions.CardinalityOptions.ComputeLevel
java.lang.Object
java.lang.Enum<DatasetOptions.CardinalityOptions.ComputeLevel>
org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<DatasetOptions.CardinalityOptions.ComputeLevel>
- Enclosing class:
DatasetOptions.CardinalityOptions
public static enum DatasetOptions.CardinalityOptions.ComputeLevel
extends Enum<DatasetOptions.CardinalityOptions.ComputeLevel>
implements ProtocolMessageEnum
Protobuf enum
tensorflow.data.CardinalityOptions.ComputeLevel-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCardinality will only be computed if it can be determined in a cheap manner (ie. without reading from file sources).Moderate effort will be made to determine cardinality, such as reading index data from source files.CARDINALITY_COMPUTE_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCardinality will only be computed if it can be determined in a cheap manner (ie. without reading from file sources).static final intModerate effort will be made to determine cardinality, such as reading index data from source files.static final intCARDINALITY_COMPUTE_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final Descriptors.EnumDescriptorfinal intvalueOf(int value) Deprecated.Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CARDINALITY_COMPUTE_UNSPECIFIED
CARDINALITY_COMPUTE_UNSPECIFIED = 0; -
CARDINALITY_COMPUTE_LOW
Cardinality will only be computed if it can be determined in a cheap manner (ie. without reading from file sources). If the cardinality would be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
CARDINALITY_COMPUTE_LOW = 1; -
CARDINALITY_COMPUTE_MODERATE
Moderate effort will be made to determine cardinality, such as reading index data from source files. If significant work is needed to compute cardinality (e.g. reading entire source file contents or executing user defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
CARDINALITY_COMPUTE_MODERATE = 2; -
UNRECOGNIZED
-
-
Field Details
-
CARDINALITY_COMPUTE_UNSPECIFIED_VALUE
public static final int CARDINALITY_COMPUTE_UNSPECIFIED_VALUECARDINALITY_COMPUTE_UNSPECIFIED = 0;- See Also:
-
CARDINALITY_COMPUTE_LOW_VALUE
public static final int CARDINALITY_COMPUTE_LOW_VALUECardinality will only be computed if it can be determined in a cheap manner (ie. without reading from file sources). If the cardinality would be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
CARDINALITY_COMPUTE_LOW = 1;- See Also:
-
CARDINALITY_COMPUTE_MODERATE_VALUE
public static final int CARDINALITY_COMPUTE_MODERATE_VALUEModerate effort will be made to determine cardinality, such as reading index data from source files. If significant work is needed to compute cardinality (e.g. reading entire source file contents or executing user defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
CARDINALITY_COMPUTE_MODERATE = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<DatasetOptions.CardinalityOptions.ComputeLevel> internalGetValueMap() -
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
public static DatasetOptions.CardinalityOptions.ComputeLevel valueOf(Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-