Database Performance at Scale by Felipe Cardeneti Mendes & Piotr Sarna & Pavel Emelyanov & Cynthia Dunlop
Author:Felipe Cardeneti Mendes & Piotr Sarna & Pavel Emelyanov & Cynthia Dunlop
Language: eng
Format: epub
ISBN: 9781484297117
Publisher: Apress
Examples
Letâs take a look at a few examples of user-defined functions. The function serving as the example operates on floating point numbers; given two parameters, it returns the sum of them, inverted. Given 5 and 7, it should return 1/5+1/7, which is approximately 0.34285714285.
Hereâs how it could be defined in Apache Cassandra, which allows user-defined function definitions to be provided in Java, its native language, as well as in other languages: CREATE OR REPLACE FUNCTION add_inverse(val1 double, val2 double)
RETURNS NULL ON NULL INPUT
RETURNS double LANGUAGE java
AS '
return (val1 == 0 || val2 == 0)
? Double.NaN
: (1/val1 + 1/val2);
';
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7772)
Filmora Efficient Editing by Alexander Zacharias(5859)
The Infinite Retina by Robert Scoble Irena Cronin(5334)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(4015)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3939)
Edit Like a Pro with iMovie by Regit(3466)
Linux Administration Best Practices by Scott Alan Miller(2864)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2840)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2528)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2438)
Docker on Windows by Stoneman Elton(2323)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2317)
Creative Projects for Rust Programmers by Carlo Milanesi(2283)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2115)
Hands-On Linux for Architects by Denis Salamanca(2056)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2011)
Computers For Seniors For Dummies by Nancy C. Muir(2009)
The Old New Thing by Raymond Chen(1943)
Linux Kernel Debugging by Kaiwan N Billimoria(1768)
