ops = ops.min(((Number) indexOptions.get("min")).doubleValue());
@Override public IndexOptions convert(Environment env, TraceInfo trace, Memory arg) throws Throwable { if (arg.isNull()) return null; ArrayMemory arr = arg.toValue(ArrayMemory.class); IndexOptions options = new IndexOptions(); if (arr.containsKey("background")) { options.background(arg.valueOfIndex("background").toBoolean()); } if (arr.containsKey("defaultLanguage")) { options.defaultLanguage(arg.valueOfIndex("defaultLanguage").toString()); } if (arr.containsKey("bits")) { options.bits(arg.valueOfIndex("bits").toInteger()); } if (arr.containsKey("name")) { options.name(arg.valueOfIndex("name").toString()); } if (arr.containsKey("max")) { options.max(arg.valueOfIndex("max").toDouble()); } if (arr.containsKey("min")) { options.min(arg.valueOfIndex("min").toDouble()); } if (arr.containsKey("languageOverride")) { options.languageOverride(arg.valueOfIndex("languageOverride").toString()); } if (arr.containsKey("sparse")) { options.sparse(arg.valueOfIndex("sparse").toBoolean()); } if (arr.containsKey("unique")) { options.unique(arg.valueOfIndex("unique").toBoolean()); } if (arr.containsKey("version")) { options.version(arg.valueOfIndex("version").toInteger()); } if (arr.containsKey("textVersion")) { options.textVersion(arg.valueOfIndex("textVersion").toInteger()); } if (arr.containsKey("sphereVersion")) { options.sphereVersion(arg.valueOfIndex("sphereVersion").toInteger()); } return options; }
ops = ops.min(((Number) indexOptions.get("min")).doubleValue());
break; case "min": indexOptions.min(Double.parseDouble(value.toString())); break; case "max":
mongoDbIndexOptions.min(indexOptions.getDouble("min"));
applyIfTrue(options.containsKey("language_override"), () -> indexOptions.languageOverride(options.getString("language_override"))); applyIfTrue(options.containsKey("max"), () -> indexOptions.max(options.getDouble("max"))); applyIfTrue(options.containsKey("min"), () -> indexOptions.min(options.getDouble("min"))); applyIfTrue(options.containsKey("name"), () -> indexOptions.name(options.getString("name"))); applyIfTrue(options.containsKey("partialFilterExpression"),
ret.min(options.get("min") .asDouble().getValue());