Members
- add_uri
- clear_data
- filter
- get_chunks_per_rank
- get_dataset
- get_hash_available
- get_mesh_chunk
- get_num_chunks_per_rank
- get_num_datasets
- get_num_mesh_chunks
- get_num_parts
- get_num_plot_chunks
- get_num_plots
- get_num_ranks
- get_num_servers
- get_num_timesteps
- get_num_variables
- get_part
- get_plot
- get_plot_chunk
- get_ranks
- get_timesteps
- get_variable
- get_variable_data
- IQuery
- IQuery
- IQuery
- operator=
- operator=
- release
- set_logger
- set_server_mod
- ~IQuery
Public functions
Function IQuery
Function ~IQuery
Function IQuery
- IQuery &&
Function operator=
- IQuery &&
Function IQuery
- const IQuery &
Function operator=
- const IQuery &
Function release
Function set_logger
- logger: logger to use, will be released if DVS::ILogger::release() is implemented
- DVS::ILogger * logger
Function add_uri
- DVS_NONE: Success
- DVS_PARAM_NULL: uri passed in was nullptr
- DVS_QUERY_HAS_CHILDREN: Cannot add a uri to a query which already has children
- DVS_QUERY_INVALID_URI: URI passed in did not parse, invalid uri
- DVS_QUERY_INVALID_FILTER: Filter in URI did not parse, invalid filter
- uri: URI of a cache. See Cache URIs
- const char * uri
Function get_num_servers
- DVS_NONE: Success
- DVS_PARAM_NULL: uri passed in was nullptr
- DVS_INVALID_CACHE: uri passed in was invalid or cache isn’t accessible
- DVS_CACHE_MISSING_SERVERS: Cache has a gap in the number of servers, bad cache?
- DVS_CACHE_EMPTY: No server folders in cache
- DVS_UNKNOWN: Internal unhandled case
- uri: URI of a cache. See Cache URIs
- num_servers: number of servers this cache was written with
- const char * uri
- uint32_t & num_servers
Function set_server_mod
- server_num: the base server number to read from the cache
- server_mod: the modulus for round-robining server data between queries/readers
- uint32_t server_num
- uint32_t server_mod
Function filter
- filter: the filter to append to the new chained child query. See Query Stanzas).
- const char * filter
Function get_num_ranks
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_ranks: the size of the buffer to allocate for IQuery::get_ranks()
- uint32_t & num_ranks
Function get_ranks
- DVS_NONE: Success
- DVS_PARAM_NULL: ranks passed in is nullptr
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- ranks: an array of the unique ranks for this query, call IQuery::get_num_ranks() for buffer size to allocate
- uint32_t * ranks
Function get_num_chunks_per_rank
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_chunks: if success returns the size of the buffer to allocate for IQuery::get_chunks_per_rank()
- uint32_t & num_chunks
Function get_chunks_per_rank
- DVS_NONE: Success
- DVS_PARAM_NULL: chunks passed in is nullptr
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- chunks: buffer to save chunk information in, an array of the chunks for each rank
- uint32_t * chunks
Function get_num_datasets
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_datasets: if success, returns the number of datasets for this query
- uint32_t & num_datasets
Function get_dataset
- index: index of the dataset to retrieve
- uint32_t index
Function get_num_parts
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_parts: if success, returns the number of parts for this query
- uint32_t & num_parts
Function get_part
- index: index of the part to retrieve
- uint32_t index
Function get_num_plots
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_plots: if success, returns the number of plots for this query
- uint32_t & num_plots
Function get_plot
- index: index of the plot to retrieve
- uint32_t index
Function get_variable_data
- DVS_NONE: No error
- DVS_PARAM_NULL: Null param passed in
- DVS_PARAM_INVALID_VAR: Invalid variable passed in, should not be possible
- DVS_PARAM_INVALID_VAR_LOC: Variable passed in not a case or part variable
- DVS_PARAM_INVALID_OBJECT_TYPE: Object passed in not a case or part object
- DVS_PARAM_INVALID_OBJECT: Invalid object passed in, should not be possible
- DVS_PARAM_INVALID_TIME: Timestep does not exist for the dataset the object belongs to
- DVS_PARAM_OBJECT_DATASET_MISMATCH: Object and variable are from different datasets
- object: The case/dataset or part object to find values for
- var: the variable to retrieve the data for
- time: the time value to retrieve the variable data for
- values: the array of data to return, should be of size DVS::IVar::get_float_count_per_value()
- const DVS::IObject * object
- const DVS::IVar * var
- float time
- float * values
Function get_num_variables
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- num_vars: if success, returns the number of variables for this query
- uint32_t & num_vars
Function get_variable
- index: index of the variable to retrieve
- uint32_t index
Function get_num_timesteps
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- DVS_QUERY_INVALID_FILTER: Invalid filter for query
- DVS_METADATA_ERROR: Error loading metadata
- num_timesteps: if success, returns the number of timesteps to allocate for IQuery::get_timesteps()
- uint32_t & num_timesteps
Function get_timesteps
- DVS_NONE: Success
- DVS_PARAM_NULL: timesteps param is nullptr
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- DVS_QUERY_INVALID_FILTER: Invalid filter for query
- DVS_METADATA_ERROR: Error loading metadata
- timesteps: buffer for timesteps to be saved in, call IQuery::get_num_timesteps() to determine size
- float * timesteps
Function get_num_mesh_chunks
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- DVS_QUERY_INVALID_FILTER: Invalid filter for query
- DVS_METADATA_ERROR: Error loading metadata
- num_mesh_chunks: if success, returns the number of mesh chunks for this query
- uint32_t & num_mesh_chunks
Function get_mesh_chunk
- index: the index of the mesh chunk to retrieve
- uint32_t index
Function get_num_plot_chunks
- DVS_NONE: Success
- DVS_INVALID_CACHE: Problem accessing cache
- DVS_DATA_FAILED_LOAD: Problem reading cache, data bad/corrupt
- DVS_QUERY_INVALID_FILTER: Invalid filter for query
- DVS_METADATA_ERROR: Error loading metadata
- num_plot_chunks: if success, returns the number of plot chunks for this query
- uint32_t & num_plot_chunks
Function get_plot_chunk
- index: index of the plot chunk to retrieve
- uint32_t index
Function get_hash_available
- DVS_NONE: Success
- DVS_PARAM_NULL: hash passed in nullptr
- DVS_INVALID_CACHE: Invalid cache, bad data
- DVS_INVALID_HASH: Hash passed in invalid
- hash: hash to check availability of, retrieved via DVS::IHash::get_hash() or DVS::IVarHash::get_var_hash()
- available: if success, returns true if found in blobstore, else false
- const char * hash
- bool & available