SQL: Remove getting named writeables from SqlPlugin (elastic/x-pack-elasticsearch#3627)
Since we don't do any serialization of Cursor classes from the Transport side (it is treated entirely as a string), we don't actually need to tell anyone about SQL's writeables Original commit: elastic/x-pack-elasticsearch@ad2c10e327
This commit is contained in:
parent
b9dbb6d204
commit
ed65987500
|
@ -20,7 +20,6 @@ import org.elasticsearch.rest.RestController;
|
|||
import org.elasticsearch.rest.RestHandler;
|
||||
import org.elasticsearch.xpack.sql.analysis.index.IndexResolver;
|
||||
import org.elasticsearch.xpack.sql.execution.PlanExecutor;
|
||||
import org.elasticsearch.xpack.sql.session.Cursor;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
@ -31,10 +30,6 @@ import static java.util.Collections.emptyList;
|
|||
|
||||
public class SqlPlugin implements ActionPlugin {
|
||||
|
||||
public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
|
||||
return Cursor.getNamedWriteables();
|
||||
}
|
||||
|
||||
private final boolean enabled;
|
||||
private final SqlLicenseChecker sqlLicenseChecker;
|
||||
private IndexResolver indexResolver;
|
||||
|
|
|
@ -437,7 +437,6 @@ public class XPackPlugin extends Plugin implements ScriptPlugin, ActionPlugin, I
|
|||
entries.addAll(machineLearning.getNamedWriteables());
|
||||
entries.addAll(licensing.getNamedWriteables());
|
||||
entries.addAll(Security.getNamedWriteables());
|
||||
entries.addAll(SqlPlugin.getNamedWriteables());
|
||||
entries.addAll(Monitoring.getNamedWriteables());
|
||||
entries.addAll(Graph.getNamedWriteables());
|
||||
return entries;
|
||||
|
|
Loading…
Reference in New Issue