voltdb将编写的存储过程jar添加的数据库里面

5.3.1. Compiling, Packaging, and Loading Stored Procedures

The VoltDB stored procedures are written as Java classes, so you compile them using the Java compiler. Anytime you update your stored procedure code, remember to recompile, package, and reload it into the database using the following steps:java

$ javac -classpath "./:/opt/voltdb/voltdb/*" \         
        -d ./obj  \
         *.java
$ jar  cvf  myproc.jar -C obj .                        
$ sqlcmd                                               
1> load classes myproc.jar;
2> show classes;

注意sql

若是在Windows下面,已经将Java 编译好了,能够先cd 进到包的根目录。spa

好比 要打包的class文件com在:C:\Users\xxx\Desktop 上面code

而后在C:\Users\xxx\Desktop>jar cvf  procedure.jar comrem

相关文章
相关标签/搜索