Codota Logo
IndexOptions.min
Code IndexAdd Codota to your IDE (free)

How to use
min
method
in
com.mongodb.client.model.IndexOptions

Best Java code snippets using com.mongodb.client.model.IndexOptions.min (Showing top 7 results out of 315)

  • Common ways to obtain IndexOptions
private void myMethod () {
IndexOptions i =
  • Codota Iconnew IndexOptions()
  • Codota Iconnew IndexOptions().unique(true)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-data-mongodb

ops = ops.min(((Number) indexOptions.get("min")).doubleValue());
origin: jphp-group/jphp

@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;
}
origin: org.springframework.data/spring-data-mongodb

ops = ops.min(((Number) indexOptions.get("min")).doubleValue());
origin: org.wso2.extension.siddhi.store.mongodb/siddhi-store-mongodb

  break;
case "min":
  indexOptions.min(Double.parseDouble(value.toString()));
  break;
case "max":
origin: lordofthejars/nosql-unit

mongoDbIndexOptions.min(indexOptions.getDouble("min"));
origin: com.github.dadrus.jpa-unit/jpa-unit-mongodb

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"),
origin: SoftInstigate/restheart

ret.min(options.get("min")
    .asDouble().getValue());
com.mongodb.client.modelIndexOptionsmin

Javadoc

Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..

Popular methods of IndexOptions

  • <init>
  • unique
    Should the index should be unique.
  • name
    Sets the name of the index.
  • background
    Should the index should be created in the background
  • expireAfter
    Sets the time to live for documents in the collection
  • sparse
    Should the index only references documents with the specified field
  • partialFilterExpression
    Sets the filter expression for the documents to be included in the index
  • defaultLanguage
    Sets the language for the text index.The language that determines the list of stop words and the rul
  • languageOverride
    Sets the name of the field that contains the language string.For text indexes, the name of the field
  • weights
    Sets the weighting object for use with a text index.An document that represents field and weight pai
  • bits
    Sets the number of precision of the stored geohash value of the location data in 2d indexes.
  • getName
    Gets the name of the index.
  • bits,
  • getName,
  • isUnique,
  • max,
  • sphereVersion,
  • bucketSize,
  • collation,
  • getDefaultLanguage,
  • getLanguageOverride

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now