@Test(expected=RuntimeException.class) public void parseEmpty() { RewriteFacetParametersComponent.parseFacetField(""); }
public static String[] parseFacetField(String line) { if(StringUtils.isEmpty(line)) { throw new RuntimeException("String input is requried"); } String[] tokens = line.split(",(?=(?:[^'|\"]*\"[^'|\"]*\")*[^'|\"]*$)", -1); return tokens; }
RewriteFacetParametersComponent extends SearchComponent { public static String[] parseFacetField(String line) { if(StringUtils.isEmpty(line)) { throw new RuntimeException("String input is requried"); } String[] tokens = line.split(",(?=(?:[^'|\"]*\"[^'|\"]*\")*[^'|\"]*$)", -1); return tokens; } }
RewriteFacetParametersComponent extends SearchComponent { public static String[] parseFacetField(String line) { if(StringUtils.isEmpty(line)) { throw new RuntimeException("String input is requried"); } String[] tokens = line.split(",(?=(?:[^'|\"]*\"[^'|\"]*\")*[^'|\"]*$)", -1); return tokens; }  }
RewriteFacetParametersComponent extends SearchComponent { public static String[] parseFacetField(String line) { if(StringUtils.isEmpty(line)) { throw new RuntimeException("String input is requried"); } String[] tokens = line.split(",(?=(?:[^'|\"]*\"[^'|\"]*\")*[^'|\"]*$)", -1); return tokens; }  @Override void prepare(ResponseBuilder rb); static String[] parseFacetField(String line); @Override void process(ResponseBuilder rb); @Override String getDescription(); @Override String getSource(); }
RewriteFacetParametersComponent extends SearchComponent { public static String[] parseFacetField(String line) { if(StringUtils.isEmpty(line)) { throw new RuntimeException("String input is requried"); } String[] tokens = line.split(",(?=(?:[^'|\"]*\"[^'|\"]*\")*[^'|\"]*$)", -1); return tokens; }  @Override void prepare(ResponseBuilder rb); static String[] parseFacetField(String line); @Override void process(ResponseBuilder rb); @Override String getDescription(); @Override String getSource();  }