|
|
The conditions are generated as follows:
SRBCreateQueryInterface: Creates an html interface for querying the SRB metadata. Will be replaced with a jsp page within a Kepler server.
SRBCreateQueryConditions: Creates conditions for querying the SRB metadata from a user xml string conditions, returned by the BrowserUI actor.
The following actor expects as input a reference to the SRB file system. This reference connection is obtained via the SRBConnect Actor in Kepler. See SRBConnect & its documentation.
The file reference system is created with a unique SRB user account and with this connection reference as input the SRBQueryMD actor is able to gain access to the SRB file space. Once an alive SRB file connection system has been established the actor gets the remote SRB file/directory and the appropriate metadata conditions. The SRB files are then queried with the metadata constraints via jargon API methods.
Actor Input: Accepts a reference to the SRB files system, an SRB remote file/directory path and conditions.
There exist separate conditions format for metadatas for datasets, collections and pre-defined metadata.
The conditions for files and directories are specified as follows: { metadata for datasets, "|", metadata for collections, "|", predefined metadata}
E.g. {"a = 5", "b = 3", "|", "x = 8", "|", "owner = efrat"}
Straight slashes ("|") separate between the different metadata types. Both slashes are MANDATORY, even if no condition is specified!
The following operators apply: =, !=, not=, <, lt, num_lt, <=, le, num_le, >, gt, num_gt, >=, ge, num_ge, in, notin, not_in, between, num_between, notbetween, not_between, num_not_between, like, notlike, not_like, in, contains, notin, not_in, , not_contains sounds_like, sounds_not_like, sounds_not_like
Actor Output: Returns an array of all the file paths satisfying the constraints.
The following actor accesses SRB file reference system and SRB file space with the SRB Jargon API
provided. The JARGON is a pure API for developing programs with a data grid interface and I/O for
SRB file systems.
Further information on SRB
Author(s): Efrat Jaeger
Version:$Id: SRBQueryMD.java,v 1.16 2006/05/21 19:38:02 brooks Exp $
|
The conditions for files and directories are specified as follows: Straight slashes ("|") separate between the different metadata types. Both slashes are MANDATORY, even if no condition was specified! { metadata for datasets, "|", metadata for collections, "|", predefined metadata} E.g. {"a = 5", "b > 3", "|", "x < 8", "|", "owner = efrat"}
The following operators apply:
=, !=, not=, <, lt, num_lt, <=, le, num_le, >, gt, num_gt, >=, ge, num_ge,
in, notin, not_in, between, num_between, notbetween, not_between, num_not_between,
like, notlike, not_like, in, contains, notin, not_in, , not_contains
sounds_like, sounds_not_like, sounds_not_like
filePaths
Matching files paths.
|