src/Cassandra/KeyspaceMetadata.cs
/// <summary>
/// Gets a CQL aggregate by name and signature
/// </summary>
/// <returns>The aggregate metadata or null if not found.</returns>
Gets a CQL aggregate by name and signature
Gets a CQL aggregate by name and signature
public AggregateMetadata GetAggregate(string aggregateName, string[] signature)
        {
            if (signature == null)
            {
                signature = new string[0];
            }
            AggregateMetadata aggregate;
            var key = GetFunctionKey(aggregateName, signature);
            if (_aggregates.TryGetValue(key, out aggregate))
            {
                return aggregate;
            }
            var signatureString = "[" + string.Join(",", signature.Select(s => "'" + s + "'")) + "]";
            var t = _parent.SchemaParser
                .GetAggregate(Name, aggregateName, signatureString)
                .ContinueSync(a =>
                {
                    if (a == null)
                    {
                        return null;
                    }
                    _aggregates.AddOrUpdate(key, a, (k, v) => a);
                    return a;
                });
            return TaskHelper.WaitToComplete(t, _parent.Configuration.ClientOptions.QueryAbortTimeout);
        }
public AggregateMetadata GetAggregate ( string aggregateName , string [ ] signature ) { if ( signature == null ) { signature = new string [ 0 ] ; } AggregateMetadata aggregate ; var key = GetFunctionKey ( aggregateName , signature ) ; if ( _aggregates . TryGetValue ( key , out aggregate ) ) { return aggregate ; } var signatureString = " " + string . Join ( " " , signature . Select ( s => " " + s + " " ) ) + " " ; var t = _parent . SchemaParser . GetAggregate ( Name , aggregateName , signatureString ) . ContinueSync ( a => { if ( a == null ) { return null ; } _aggregates . AddOrUpdate ( key , a , ( k , v ) => a ) ; return a ; } ) ; return TaskHelper . WaitToComplete ( t , _parent . Configuration . ClientOptions . QueryAbortTimeout ) ; }
Gets a CQL aggregate by name and signature
Gets a CQL aggregate by name and signature
The aggregate metadata or null if not found.
The aggregate metadata or null if not found .
aggregateName
string
signature
string[]