public static Style getStyle(String str) {
   try {
     return Style.valueOf(str);
   } catch (Exception ex) {
     throw new SolrException(ErrorCode.BAD_REQUEST, "Unknown Explain Style: " + str);
   }
 }
Пример #2
0
 public static Style fromProto(Common.CursorFactory.Style proto) {
   return Style.valueOf(proto.name());
 }
Пример #3
0
 public Combination(String style, int count) {
   this.style = Style.valueOf(style);
   this.count = count;
 }