Package io.nosqlbench.nb.api.content
Interface NBPathsAPI.GetName
- All Superinterfaces:
NBPathsAPI.DoSearch,NBPathsAPI.GetExtension
- All Known Subinterfaces:
NBPathsAPI.Facets,NBPathsAPI.GetPrefix
- All Known Implementing Classes:
NBIO
- Enclosing interface:
- NBPathsAPI
public static interface NBPathsAPI.GetName extends NBPathsAPI.GetExtension
-
Method Summary
Modifier and Type Method Description NBPathsAPI.GetExtensionname(java.lang.String... name)Provide the names of the resources to be resolved.NBPathsAPI.DoSearchsearch(java.lang.String... name)Provide a combined prefix, name and suffix in a combined form.Methods inherited from interface io.nosqlbench.nb.api.content.NBPathsAPI.DoSearch
first, list, one, relativeTo, resolveEach
-
Method Details
-
name
Provide the names of the resources to be resolved. More than one resource may be provided. If no name is provided, then a wildcard search is assumed.- Parameters:
name- The name of the resource to load- Returns:
- this builder
-
search
Provide a combined prefix, name and suffix in a combined form. For each search template provided, the value is sliced up into the three components (prefix, name, extension) and added as if they were specified separately using the following rules:- Any suffix like
is stripped off as the extension..name - Any literal (non-pattern) path parts are taken as the prefix.
- The remainder is taken as the name.
my/prefix/path/..?/name.txtyields:- prefix:
my/prefix/path/ - name:
..?/name - extension:
.txt
- prefix:
.*.yamlyeilds:- prefix:
./ - name:
.* - extension:
.yaml
- prefix:
- Parameters:
name-- Returns:
- Any suffix like
-