Re: [classad-users] Constraint Question


Date: Wed, 18 Jan 2006 13:03:57 -0600 (CST)
From: Nicholas Coleman <ncoleman@xxxxxxxxxxx>
Subject: Re: [classad-users] Constraint Question
> >What about a constraint matching ads that have only an A attribute.
> >Can I do that without knowing about all possible attributes that
> >might be in an ad?
>
> There is no way to do that in the language--you'd have to have a code
> solution for that. It *might* be possible to write a user-defined
> function in the C++ implementation to do that, but I'm not sure off
> the top of my head.

I would suggest a user defined function that returns the number of
attributes in a ClassAd.  It would have to iterate through the attributes
in the ClassAd and tally the number, but this could be implemented without
any changes to the ClassAd API.

- Nick

[← Prev in Thread] Current Thread [Next in Thread→]