Package org.rcsb.strucmotif.domain.query
Class MotifSearchQuery
java.lang.Object
org.rcsb.strucmotif.domain.query.MotifSearchQuery
The immutable container for a structural motif query.
-
Method Summary
Modifier and TypeMethodDescriptionReturns disallowed entries of the search space.All specified exchanges.All parameters defined for this search task.The structure used to define this query/motif.Returns the specified search space - no restrictions apply if empty.run()Dispatch this query and perform the corresponding search.voidrunAndConsume(Consumer<Hit> hitConsumer) Dispatch this query and consume each accepted hit on-the-fly.voidrunAndWriteToPath(Path path) Dispatch this query and write each accepted hit to a file.
-
Method Details
-
getQueryStructure
The structure used to define this query/motif.- Returns:
- a dedicated implementation wrapping a structure instance
-
getParameters
All parameters defined for this search task.- Returns:
- a parameter instance
-
getExchanges
All specified exchanges.- Returns:
- a map (key: label selector, value: all allowed component types)
-
getWhitelist
Returns the specified search space - no restrictions apply if empty.- Returns:
- a collection of the search space
-
getBlacklist
Returns disallowed entries of the search space.- Returns:
- a collection of entries that will be ignored
-
run
Dispatch this query and perform the corresponding search.- Returns:
- the result container
-
runAndConsume
Dispatch this query and consume each accepted hit on-the-fly. This doesn't keep hits in memory.- Parameters:
hitConsumer- terminal operation to perform on accepted hits
-
runAndWriteToPath
Dispatch this query and write each accepted hit to a file. Overwrites existing files, doesn't keep hits in memory.- Parameters:
path- destination
-