congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IndexOptions.getVersion
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jphp-group/jphp

@Override
public Memory unconvert(Environment env, TraceInfo trace, IndexOptions arg) throws Throwable {
  if (arg == null) return Memory.NULL;
  ArrayMemory options = ArrayMemory.createHashed(12);
  options.put("name", arg.getName());
  options.put("background", arg.isBackground());
  options.put("sparse", arg.isSparse());
  options.put("unique", arg.isUnique());
  if (arg.getDefaultLanguage() != null) options.put("defaultLanguage", arg.getDefaultLanguage());
  if (arg.getBits() != null) options.put("bits", arg.getBits());
  if (arg.getMax() != null) options.put("max", arg.getMax());
  if (arg.getMin() != null) options.put("min", arg.getMin());
  if (arg.getLanguageOverride() != null) options.put("languageOverride", arg.getLanguageOverride());
  if (arg.getVersion() != null) options.put("version", arg.getVersion());
  if (arg.getTextVersion() != null) options.put("textVersion", arg.getTextVersion());
  if (arg.getSphereVersion() != null) options.put("sphereVersion", arg.getSphereVersion());
  return options;
}
origin: org.mongodb/mongo-java-driver

.sparse(model.getOptions().isSparse())
.expireAfter(model.getOptions().getExpireAfter(TimeUnit.SECONDS), TimeUnit.SECONDS)
.version(model.getOptions().getVersion())
.weights(toBsonDocument(model.getOptions().getWeights()))
.defaultLanguage(model.getOptions().getDefaultLanguage())
origin: org.wso2.extension.siddhi.store.mongodb/siddhi-store-mongodb

if (expectedIndexOptions.getVersion() == null) {
  indexOptionsMap.put("v", 2);
} else {
  indexOptionsMap.put("v", expectedIndexOptions.getVersion());
origin: org.mongodb/mongodb-driver-core

.sparse(model.getOptions().isSparse())
.expireAfter(model.getOptions().getExpireAfter(TimeUnit.SECONDS), TimeUnit.SECONDS)
.version(model.getOptions().getVersion())
.weights(toBsonDocument(model.getOptions().getWeights()))
.defaultLanguage(model.getOptions().getDefaultLanguage())
com.mongodb.client.modelIndexOptionsgetVersion

Javadoc

Gets the index version number.

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,
  • min,
  • sphereVersion,
  • bucketSize,
  • collation,
  • getDefaultLanguage,
  • getLanguageOverride

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • Kernel (java.awt.image)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now