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