예제 #1
0
파일: BeeLineOpts.java 프로젝트: Leolh/hive
 @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;
   }
 }
예제 #2
0
파일: BeeLineOpts.java 프로젝트: Leolh/hive
 public void save(OutputStream out) throws IOException {
   try {
     Properties props = toProperties();
     // don't save maxwidth: it is automatically set based on
     // the terminal configuration
     props.remove(PROPERTY_PREFIX + "maxwidth");
     props.store(out, beeLine.getApplicationTitle());
   } catch (Exception e) {
     beeLine.handleException(e);
   }
 }