throw new ElasticsearchParseException("Percentage should be in [0-100], got [{}]", percentAsString); return new RatioValue(Math.abs(percent)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Failed to parse [{}] as a double", e, percentAsString); throw new ElasticsearchParseException("Ratio should be in [0-1.0], got [{}]", ratio); return new RatioValue(100.0 * Math.abs(ratio)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Invalid ratio or percentage [{}]", sValue);
throw new ElasticsearchParseException("Percentage should be in [0-100], got [{}]", percentAsString); return new RatioValue(Math.abs(percent)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Failed to parse [{}] as a double", e, percentAsString); throw new ElasticsearchParseException("Ratio should be in [0-1.0], got [{}]", ratio); return new RatioValue(100.0 * Math.abs(ratio)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Invalid ratio or percentage [{}]", sValue);
throw new ElasticsearchParseException("Percentage should be in [0-100], got [{}]", percentAsString); return new RatioValue(Math.abs(percent)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Failed to parse [{}] as a double", e, percentAsString); throw new ElasticsearchParseException("Ratio should be in [0-1.0], got [{}]", ratio); return new RatioValue(100.0 * Math.abs(ratio)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Invalid ratio or percentage [{}]", sValue);
throw new ElasticsearchParseException("Percentage should be in [0-100], got [{}]", percentAsString); return new RatioValue(Math.abs(percent)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Failed to parse [{}] as a double", e, percentAsString); throw new ElasticsearchParseException("Ratio should be in [0-1.0], got [{}]", ratio); return new RatioValue(100.0 * Math.abs(ratio)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Invalid ratio or percentage [{}]", sValue);
throw new ElasticsearchParseException("Percentage should be in [0-100], got [{}]", percentAsString); return new RatioValue(Math.abs(percent)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Failed to parse [{}] as a double", e, percentAsString); throw new ElasticsearchParseException("Ratio should be in [0-1.0], got [{}]", ratio); return new RatioValue(100.0 * Math.abs(ratio)); } catch (NumberFormatException e) { throw new ElasticsearchParseException("Invalid ratio or percentage [{}]", sValue);