Content Deep Dive
Cassandra User Defined Functions using the Python Driver
Blog post from DataStax
Post Details
Company
Date Published
Author
Kishan Karunaratne
Word Count
1,498
Language
English
Hacker News Points
-
Summary
Apache Cassandra 2.2 introduced User Defined Functions (UDFs) and User Defined Aggregates (UDAs), which allow certain types of computation to occur server-side, directly on the Cassandra cluster. This can reduce network traffic to the client and reduce client-side resource utilization. UDFs are identified by their signature: the combination of its keyspace, function name and arguments. They can be used in scenarios such as filtering items based on the number of available states or retrieving specific information from User Defined Types (UDTs). By supporting JSR 223 scripting languages, UDFs allows you to write server-side executable scripts in your favorite language among many supported languages.