Enum Class OpTemplateFormat
- All Implemented Interfaces:
Serializable,Comparable<OpTemplateFormat>,Constable
The formats which are recognized as source data for the workload. Any serialization may be supported
which can be converted from a character string to an
RawOpsDocList structure.
Those which are derived from paths may be determined by their filename extension. Others, which are provided from internal
NoSQLBench sources, may only be invoked explicitly.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe source is inline, meaningParamsParserformat.The source is in JSON formatThe source is in jsonnet format, suitable for pre-processing with context dataThe source is in single-statement form, meaning that it is known to be the value of the 'stmt' field of an op template.The source is in YAML format -
Method Summary
Modifier and TypeMethodDescriptionstatic OpTemplateFormatReturns the enum constant of this class with the specified name.static OpTemplateFormatvalueOfPath(Path path) static OpTemplateFormatvalueOfURI(URI uri) static OpTemplateFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
yaml
The source is in YAML format -
json
The source is in JSON format -
jsonnet
The source is in jsonnet format, suitable for pre-processing with context data -
inline
The source is inline, meaningParamsParserformat. This is similar to thestmtformat except that it is parsed for internal op structure. This format is not detectable by source path, and thus can only be used when provided directly from the caller. -
stmt
The source is in single-statement form, meaning that it is known to be the value of the 'stmt' field of an op template. This format is not detectable by source path, and thus can only be used when provided directly from the caller.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfURI
-
valueOfPath
-