public class UserDefinedFunctionHelper extends Object
| Constructor and Description |
|---|
UserDefinedFunctionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fixCompilerClassLoader()
Fixes the classloader that Cassandra uses to compile UDFs.
|
public static void fixCompilerClassLoader()
By default, it is set to the context classloader, which works in regular Cassandra, but not in Stargate's OSGi environment. This method uses reflection calls to change it to the classloader that loaded Cassandra classes.
Note that CASSANDRA-17013 fixes this issue directly in the Cassandra codebase; therefore this method will become obsolete once Stargate depends on Cassandra JARs that have the fix.
Copyright © 2022. All rights reserved.