@Override public int complete(String buffer, int cursor, List<CharSequence> clist) { return buffer != null && buffer.equals("set") ? super.complete(buffer, cursor, clist) : -1; } };
@Override public int complete(final String buffer, final int cursor, final List<CharSequence> clist) { int result = super.complete(buffer, cursor, clist); if (clist.isEmpty() && cursor > 1 && buffer.charAt(cursor - 1) == '=') { HiveConf.ConfVars var = HiveConf.getConfVars(buffer.substring(0, cursor - 1));
@Override public int complete(String buf, int pos, List cand) { try { return new StringsCompleter(propertyNames()).complete(buf, pos, cand); } catch (Exception e) { beeLine.handleException(e); return -1; } }
public int complete(String buf, int pos, List cand) { if (beeLine.getDatabaseConnection() == null) { return -1; } return new StringsCompleter(beeLine.getDatabaseConnection().getTableNames(true)) .complete(buf, pos, cand); } }
@Override public int complete(String buffer, int cursor, List<CharSequence> clist) { return buffer != null && buffer.equals("set") ? super.complete(buffer, cursor, clist) : -1; } };
@Override public int complete(String buffer, int cursor, List<CharSequence> clist) { return buffer != null && buffer.equals("set") ? super.complete(buffer, cursor, clist) : -1; } };
@Override public int complete(String buffer, int cursor, List<CharSequence> clist) { return buffer != null && buffer.equals("set") ? super.complete(buffer, cursor, clist) : -1; } };
public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) { if (!initialized) { init(); } return delegate.complete(buffer, cursor, candidates); } }
public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) { if (!initialized) { init(); } return delegate.complete(buffer, cursor, candidates); } }
public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) { if (!initialized) { init(); } return delegate.complete(buffer, cursor, candidates); } }
public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) { if (!initialized) { init(); } return delegate.complete(buffer, cursor, candidates); } }
@Override public int complete(String s, int i, List<CharSequence> list) { return new StringsCompleter(client.getAllSessionVariables().keySet().toArray(new String[1])) .complete(s, i, list); } }
@Override public int complete(String s, int i, List<CharSequence> list) { List<String> tableList = client.getTableList(client.getCurrentDatabase()); if (tableList.isEmpty()) { return -1; } return new StringsCompleter(tableList.toArray(new String[1])).complete(s, i, list); } }
@Override public int complete(String s, int i, List<CharSequence> list) { List<CatalogProtos.FunctionDescProto> functionProtos = client.getFunctions(""); if (functionProtos.isEmpty()) { return -1; } List<String> names = functionProtos.stream().map( (proto) -> proto.getSignature().getName()).collect(Collectors.toList()); return new StringsCompleter(names.toArray(new String [1])).complete(s, i, list); } }
public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) { StringsCompleter delegate = new StringsCompleter(); delegate.getStrings().addAll(logging.getLoggerNames()); return delegate.complete(buffer, cursor, candidates); } }
@Override public int complete(String buf, int pos, List cand) { try { return new StringsCompleter(propertyNames()).complete(buf, pos, cand); } catch (Exception e) { beeLine.handleException(e); return -1; } }
@Override public int complete(String buf, int pos, List cand) { try { return new StringsCompleter(propertyNames()).complete(buf, pos, cand); } catch (Exception e) { beeLine.handleException(e); return -1; } }
@Override public int complete(String buf, int pos, List cand) { try { return new StringsCompleter(propertyNames()).complete(buf, pos, cand); } catch (Exception e) { beeLine.handleException(e); return -1; } }
public int complete(String buf, int pos, List cand) { if (beeLine.getDatabaseConnection() == null) { return -1; } return new StringsCompleter(beeLine.getDatabaseConnection().getTableNames(true)) .complete(buf, pos, cand); } }
public int complete(String buf, int pos, List cand) { if (beeLine.getDatabaseConnection() == null) { return -1; } return new StringsCompleter(beeLine.getDatabaseConnection().getTableNames(true)) .complete(buf, pos, cand); } }