mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Change return type
This commit is contained in:
parent
bd04c22bc0
commit
80e295b163
7 changed files with 12 additions and 6 deletions
|
|
@ -140,7 +140,7 @@ public class CassandraInterpreter extends Interpreter {
|
|||
public static final String LOGGING_DOWNGRADING_RETRY = "LOGGING_DOWNGRADING";
|
||||
public static final String LOGGING_FALLTHROUGH_RETRY = "LOGGING_FALLTHROUGH";
|
||||
|
||||
public static final List<InterpreterCompletion> NO_COMPLETION = new ArrayList<>();
|
||||
public static final List NO_COMPLETION = new ArrayList<>();
|
||||
|
||||
InterpreterLogic helper;
|
||||
Cluster cluster;
|
||||
|
|
|
|||
|
|
@ -156,7 +156,8 @@ public class ClassloaderInterpreter
|
|||
ClassLoader oldcl = Thread.currentThread().getContextClassLoader();
|
||||
Thread.currentThread().setContextClassLoader(cl);
|
||||
try {
|
||||
return intp.completion(buf, cursor);
|
||||
List completion = intp.completion(buf, cursor);
|
||||
return completion;
|
||||
} catch (Exception e) {
|
||||
throw new InterpreterException(e);
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,8 @@ public class LazyOpenInterpreter
|
|||
@Override
|
||||
public List<InterpreterCompletion> completion(String buf, int cursor) {
|
||||
open();
|
||||
return intp.completion(buf, cursor);
|
||||
List completion = intp.completion(buf, cursor);
|
||||
return completion;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -389,7 +389,8 @@ public class RemoteInterpreter extends Interpreter {
|
|||
|
||||
boolean broken = false;
|
||||
try {
|
||||
return client.completion(noteId, className, buf, cursor);
|
||||
List completion = client.completion(noteId, className, buf, cursor);
|
||||
return completion;
|
||||
} catch (TException e) {
|
||||
broken = true;
|
||||
throw new InterpreterException(e);
|
||||
|
|
|
|||
|
|
@ -416,7 +416,8 @@ public class RemoteInterpreterServer
|
|||
int cursor)
|
||||
throws TException {
|
||||
Interpreter intp = getInterpreter(noteId, className);
|
||||
return intp.completion(buf, cursor);
|
||||
List completion = intp.completion(buf, cursor);
|
||||
return completion;
|
||||
}
|
||||
|
||||
private InterpreterContext convert(RemoteInterpreterContext ric) {
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ angular.module('zeppelinWebApp')
|
|||
var completions = [];
|
||||
for (var c in data.completions) {
|
||||
var v = data.completions[c];
|
||||
console.log('%o', v);
|
||||
console.log('%o %o', v.name, v.value);
|
||||
completions.push({
|
||||
name: v.name,
|
||||
|
|
|
|||
|
|
@ -208,7 +208,8 @@ public class Paragraph extends Job implements Serializable, Cloneable {
|
|||
return null;
|
||||
}
|
||||
|
||||
return repl.completion(body, cursor);
|
||||
List completion = repl.completion(body, cursor);
|
||||
return completion;
|
||||
}
|
||||
|
||||
public void setNoteReplLoader(NoteInterpreterLoader repls) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue