Class ParamsParserSource
java.lang.Object
io.nosqlbench.nb.api.config.params.ParamsParserSource
- All Implemented Interfaces:
ConfigSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest the input data format to see if it appears valid for reading with this config source.Read the source of data into a collection of config elementsgetName()If an element was created with a name, this name must be returned as the canonical name.
-
Constructor Details
-
ParamsParserSource
public ParamsParserSource()
-
-
Method Details
-
canRead
Description copied from interface:ConfigSourceTest the input data format to see if it appears valid for reading with this config source.- Specified by:
canReadin interfaceConfigSource- Parameters:
source- An object of any kind- Returns:
- true if the text is parsable by this config source
-
getAll
Description copied from interface:ConfigSourceRead the source of data into a collection of config elements- Specified by:
getAllin interfaceConfigSource- Parameters:
source- An object of any kind- Returns:
- a collection of
Elements
-
getName
Description copied from interface:ConfigSourceIf an element was created with a name, this name must be returned as the canonical name. If it was not, then the name field can provide the name.- Specified by:
getNamein interfaceConfigSource- Returns:
- A name, or null if it is not given nor present in the name field
-