title: How can I create User Defined Functions in Cassandra with Custom Java Class?
body: <p>I couldn't find this anywhere online. How can I create a custom user defined function in cassandra?.</p>
  
  <p>For Ex : </p>
  
  <pre><code>CREATE OR REPLACE FUNCTION customfunc(custommap map&lt;text, int&gt;)
  CALLED ON NULL INPUT
  RETURNS map&lt;int,bigint&gt; 
  LANGUAGE java AS 'return MyClass.mymethod(custommap);';
  </code></pre>
  
  <p>Where "MyClass" is a class that I can register in the Classpath?</p>