@@ -2821,14 +2821,12 @@ public final CommandObject<List<LibraryInfo>> functionListWithCode(String librar
2821
2821
.add (libraryNamePattern ).add (WITHCODE ), BuilderFactory .LIBRARY_LIST );
2822
2822
}
2823
2823
2824
- public final CommandObject <String > functionLoad (String engineName , String libraryName , String functionCode ) {
2825
- return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (engineName )
2826
- .add (libraryName ).add (functionCode ), BuilderFactory .STRING );
2824
+ public final CommandObject <String > functionLoad (String functionCode ) {
2825
+ return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (functionCode ), BuilderFactory .STRING );
2827
2826
}
2828
2827
2829
- public final CommandObject <String > functionLoad (String engineName , String libraryName , FunctionLoadParams params , String functionCode ) {
2830
- return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (engineName )
2831
- .add (libraryName ).addParams (params ).add (functionCode ), BuilderFactory .STRING );
2828
+ public final CommandObject <String > functionLoadReplace (String functionCode ) {
2829
+ return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (REPLACE ).add (functionCode ), BuilderFactory .STRING );
2832
2830
}
2833
2831
2834
2832
public final CommandObject <FunctionStats > functionStats () {
@@ -2893,14 +2891,12 @@ public final CommandObject<List<Object>> functionListWithCode(byte[] libraryName
2893
2891
add (libraryNamePattern ).add (WITHCODE ), BuilderFactory .RAW_OBJECT_LIST );
2894
2892
}
2895
2893
2896
- public final CommandObject <String > functionLoad (byte [] engineName , byte [] libraryName , byte [] functionCode ) {
2897
- return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (engineName )
2898
- .add (libraryName ).add (functionCode ), BuilderFactory .STRING );
2894
+ public final CommandObject <String > functionLoad (byte [] functionCode ) {
2895
+ return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (functionCode ), BuilderFactory .STRING );
2899
2896
}
2900
2897
2901
- public final CommandObject <String > functionLoad (byte [] engineName , byte [] libraryName , FunctionLoadParams params , byte [] functionCode ) {
2902
- return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (engineName )
2903
- .add (libraryName ).addParams (params ).add (functionCode ), BuilderFactory .STRING );
2898
+ public final CommandObject <String > functionLoadReplace (byte [] functionCode ) {
2899
+ return new CommandObject <>(commandArguments (FUNCTION ).add (LOAD ).add (REPLACE ).add (functionCode ), BuilderFactory .STRING );
2904
2900
}
2905
2901
2906
2902
public final CommandObject <String > functionRestore (byte [] serializedValue ) {
0 commit comments