A user defined aggregate function, as created by ``CREATE AGGREGATE`` statements. Aggregate functions were introduced in Cassandra 2.2 .. versionadded:: 2.6.0
| 953 | |
| 954 | |
| 955 | class Aggregate(object): |
| 956 | """ |
| 957 | A user defined aggregate function, as created by ``CREATE AGGREGATE`` statements. |
| 958 | |
| 959 | Aggregate functions were introduced in Cassandra 2.2 |
| 960 | |
| 961 | .. versionadded:: 2.6.0 |
| 962 | """ |
| 963 | |
| 964 | keyspace = None |
| 965 | """ |
| 966 | The string name of the keyspace in which this aggregate is defined |
| 967 | """ |
| 968 | |
| 969 | name = None |
| 970 | """ |
| 971 | The name of this aggregate |
| 972 | """ |
| 973 | |
| 974 | argument_types = None |
| 975 | """ |
| 976 | An ordered list of the types for each argument to the aggregate |
| 977 | """ |
| 978 | |
| 979 | final_func = None |
| 980 | """ |
| 981 | Name of a final function |
| 982 | """ |
| 983 | |
| 984 | initial_condition = None |
| 985 | """ |
| 986 | Initial condition of the aggregate |
| 987 | """ |
| 988 | |
| 989 | return_type = None |
| 990 | """ |
| 991 | Return type of the aggregate |
| 992 | """ |
| 993 | |
| 994 | state_func = None |
| 995 | """ |
| 996 | Name of a state function |
| 997 | """ |
| 998 | |
| 999 | state_type = None |
| 1000 | """ |
| 1001 | Type of the aggregate state |
| 1002 | """ |
| 1003 | |
| 1004 | deterministic = None |
| 1005 | """ |
| 1006 | Flag indicating if this function is guaranteed to produce the same result |
| 1007 | for a particular input and state. This is available only with DSE >=6.0. |
| 1008 | """ |
| 1009 | |
| 1010 | def __init__(self, keyspace, name, argument_types, state_func, |
| 1011 | state_type, final_func, initial_condition, return_type, |
| 1012 | deterministic): |
no outgoing calls