Change return type

This commit is contained in:
AhyoungRyu 2016-06-09 10:31:49 -07:00
parent bd04c22bc0
commit 80e295b163
7 changed files with 12 additions and 6 deletions

View file

@ -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;

View file

@ -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 {

View file

@ -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

View file

@ -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);

View file

@ -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) {

View file

@ -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,

View file

@ -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) {