GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • V7.x Documentation
  • Privacy Statement
  • License Agreement
  • Contact Us

This view

  • Original page
  • New address

GeezerVison is showing docs.voltdb.com — 8.3. Declaring a User-Defined Function

  • Volt Active Data
  • Feedback/Discuss
  • V7.x Books
    • VoltDB Tutorial
    • Using VoltDB
    • VoltDB Guide to Performance and Customization
    • VoltDB Planning Guide
    • VoltDB Administrator's Guide
  • Current docs ▶
8.3. Declaring a User-Defined Function

Documentation

VoltDB Home » Documentation » Guide to Performance and Customization
< previoustable of contentsnext >

8.3. Declaring a User-Defined Function

Once the Java class containing the method is loaded, you can declare the function itself. You declare the function using the CREATE FUNCTION statement, specifying the name of the function and the associated Java class path and method name. For example, if you want to call the function associated with the preceding Java example US2METRIC, the CREATE FUNCTION statement looks like this:

CREATE FUNCTION US2METRIC FROM METHOD myapp.functions.Conversion.us2metric;

Note that although the function name, US2METRIC, is not case sensitive, the class path and method names are and must be specified in the correct mix of upper and lower-case.

< previoustable of contentsnext >
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.