Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Triggers and Functions feature #3969

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions src/main/java/redis/clients/jedis/CommandObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import redis.clients.jedis.bloom.*;
import redis.clients.jedis.bloom.RedisBloomProtocol.*;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.gears.*;
import redis.clients.jedis.gears.RedisGearsProtocol.*;
import redis.clients.jedis.gears.resps.GearsLibraryInfo;
import redis.clients.jedis.graph.GraphProtocol.*;
import redis.clients.jedis.json.*;
import redis.clients.jedis.json.JsonProtocol.JsonCommand;
Expand Down Expand Up @@ -4413,38 +4410,6 @@ public final CommandObject<Map<String, Object>> graphConfigGet(String configName
}
// RedisGraph commands

// RedisGears commands
@Deprecated
public final CommandObject<String> tFunctionLoad(String libraryCode, TFunctionLoadParams params) {
return new CommandObject<>(commandArguments(GearsCommand.TFUNCTION).add(GearsKeyword.LOAD)
.addParams(params).add(libraryCode), BuilderFactory.STRING);
}

@Deprecated
public final CommandObject<String> tFunctionDelete(String libraryName) {
return new CommandObject<>(commandArguments(GearsCommand.TFUNCTION).add(GearsKeyword.DELETE)
.add(libraryName), BuilderFactory.STRING);
}

@Deprecated
public final CommandObject<List<GearsLibraryInfo>> tFunctionList(TFunctionListParams params) {
return new CommandObject<>(commandArguments(GearsCommand.TFUNCTION).add(GearsKeyword.LIST)
.addParams(params), GearsLibraryInfo.GEARS_LIBRARY_INFO_LIST);
}

@Deprecated
public final CommandObject<Object> tFunctionCall(String library, String function, List<String> keys, List<String> args) {
return new CommandObject<>(commandArguments(GearsCommand.TFCALL).add(library + "." + function)
.add(keys.size()).keys(keys).addObjects(args), BuilderFactory.AGGRESSIVE_ENCODED_OBJECT);
}

@Deprecated
public final CommandObject<Object> tFunctionCallAsync(String library, String function, List<String> keys, List<String> args) {
return new CommandObject<>(commandArguments(GearsCommand.TFCALLASYNC).add(library + "." + function)
.add(keys.size()).keys(keys).addObjects(args), BuilderFactory.AGGRESSIVE_ENCODED_OBJECT);
}
// RedisGears commands

// Transaction commands
public final CommandObject<String> watch(String... keys) {
return new CommandObject<>(commandArguments(WATCH).keys((Object[]) keys), BuilderFactory.STRING);
Expand Down
35 changes: 0 additions & 35 deletions src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import redis.clients.jedis.commands.RedisModuleCommands;
import redis.clients.jedis.exceptions.JedisException;
import redis.clients.jedis.executors.*;
import redis.clients.jedis.gears.TFunctionListParams;
import redis.clients.jedis.gears.TFunctionLoadParams;
import redis.clients.jedis.gears.resps.GearsLibraryInfo;
import redis.clients.jedis.graph.GraphCommandObjects;
import redis.clients.jedis.graph.ResultSet;
import redis.clients.jedis.json.JsonSetParams;
Expand Down Expand Up @@ -4983,38 +4980,6 @@ public Map<String, Object> graphConfigGet(String configName) {
}
// RedisGraph commands

// RedisGears commands
@Deprecated
@Override
public String tFunctionLoad(String libraryCode, TFunctionLoadParams params) {
return executeCommand(commandObjects.tFunctionLoad(libraryCode, params));
}

@Deprecated
@Override
public String tFunctionDelete(String libraryName) {
return executeCommand(commandObjects.tFunctionDelete(libraryName));
}

@Deprecated
@Override
public List<GearsLibraryInfo> tFunctionList(TFunctionListParams params) {
return executeCommand(commandObjects.tFunctionList(params));
}

@Deprecated
@Override
public Object tFunctionCall(String library, String function, List<String> keys, List<String> args) {
return executeCommand(commandObjects.tFunctionCall(library, function, keys, args));
}

@Deprecated
@Override
public Object tFunctionCallAsync(String library, String function, List<String> keys, List<String> args) {
return executeCommand(commandObjects.tFunctionCallAsync(library, function, keys, args));
}
// RedisGears commands

/**
* @return pipeline object. Use {@link AbstractPipeline} instead of {@link PipelineBase}.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package redis.clients.jedis.commands;

import redis.clients.jedis.bloom.commands.RedisBloomCommands;
import redis.clients.jedis.gears.RedisGearsCommands;
import redis.clients.jedis.graph.RedisGraphCommands;
import redis.clients.jedis.json.commands.RedisJsonCommands;
import redis.clients.jedis.search.RediSearchCommands;
Expand All @@ -12,7 +11,6 @@ public interface RedisModuleCommands extends
RedisJsonCommands,
RedisTimeSeriesCommands,
RedisBloomCommands,
RedisGraphCommands,
RedisGearsCommands {
RedisGraphCommands {

}
27 changes: 0 additions & 27 deletions src/main/java/redis/clients/jedis/gears/RedisGearsCommands.java

This file was deleted.

52 changes: 0 additions & 52 deletions src/main/java/redis/clients/jedis/gears/RedisGearsProtocol.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/java/redis/clients/jedis/gears/TFunctionListParams.java

This file was deleted.

36 changes: 0 additions & 36 deletions src/main/java/redis/clients/jedis/gears/TFunctionLoadParams.java

This file was deleted.

99 changes: 0 additions & 99 deletions src/main/java/redis/clients/jedis/gears/resps/FunctionInfo.java

This file was deleted.

Loading
Loading