Package io.nosqlbench.api.content
Interface NBPathsAPI.DoSearch
- All Known Subinterfaces:
NBPathsAPI.Facets,NBPathsAPI.GetExtension,NBPathsAPI.GetName,NBPathsAPI.GetPrefix
- All Known Implementing Classes:
NBIO
- Enclosing interface:
- NBPathsAPI
public static interface NBPathsAPI.DoSearch
-
Method Summary
Modifier and TypeMethodDescriptionfirst()Return the result of resolving the resource.list()Provide a list of all matching content that was matched by the search qualifiersContent<?>one()Find exactly one source of content under the search parameters given.relativeTo(String... base) Return a list of paths which are comprised of the relative part once the provided base has been removed from the front.Return the result of resolving each of the resource names given.
-
Method Details
-
first
Return the result of resolving the resource.- Returns:
- an optional
Content<?>element.
-
resolveEach
Return the result of resolving each of the resource names given. This has the same semantics offirst(), except that it returns a result pair-wise for each name given.- Returns:
- A list of optional
Content<?>elements.
-
list
Provide a list of all matching content that was matched by the search qualifiers- Returns:
- a list of content
-
relativeTo
Return a list of paths which are comprised of the relative part once the provided base has been removed from the front. This is done per content item within the direct filesystem the path belongs to.- Parameters:
base- The root path elements to remove- Returns:
- Relative paths
-
one
Content<?> one()Find exactly one source of content under the search parameters given. It is an error if you find none, or more than one.- Returns:
- An optional content element.
-