int drms_series_checkseriescompat ( DRMS_Env_t drmsEnv,
const char *  series1,
const char *  series2,
HContainer_t matchSegs,
int *  status 
)

queries the DRMS database to determine if series1 and series2 are compatible in terms of their primary-keyword and segment definitions. Two primary keyword definitions "match" if the type, recscope, and per_segment DRMS_Keyword_t fields are equal. drms_segment_segsmatch is used to determine if two segment definitions "match". If all primary keywords and at least one segment match and no error occurs, the function intializes matchSegs and allocates one HContainer_t element for each segment that the two series have in common. Each HContainer_t element is a string that names the matching segment. The caller must provide a non-NULL matchSegs container to the function. It is the caller's responsibility to deallocate memory associated with the allocation of HContainer_t elements.

Returns:
1 if compatible. Upon success, this function sets *status to DRMS_SUCCESS. Otherwise *status is set to a diagostic status code (see drms_statuscodes.h).

Definition at line 4091 of file drms_series.c.


Generated on Mon Mar 26 07:00:50 2018 for JSOC_Documentation by  doxygen 1.5.7.1