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

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

Best Java code snippets using com.mongodb.client.model.IndexOptions.getCollation (Showing top 4 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: org.mongodb/mongo-java-driver

    .storageEngine(toBsonDocument(model.getOptions().getStorageEngine()))
    .partialFilterExpression(toBsonDocument(model.getOptions().getPartialFilterExpression()))
    .collation(model.getOptions().getCollation())
);
origin: MorphiaOrg/morphia

@Test
public void indexOptionsConversion() {
  IndexOptionsBuilder indexOptions = indexOptions();
  com.mongodb.client.model.IndexOptions options = indexHelper.convert(indexOptions, false);
  assertEquals("index_name", options.getName());
  assertTrue(options.isBackground());
  assertTrue(options.isUnique());
  assertTrue(options.isSparse());
  assertEquals(Long.valueOf(42), options.getExpireAfter(TimeUnit.SECONDS));
  assertEquals("en", options.getDefaultLanguage());
  assertEquals("de", options.getLanguageOverride());
  assertEquals(indexHelper.convert(indexOptions.collation()), options.getCollation());
  assertTrue(indexHelper.convert(indexOptions, true).isBackground());
  assertTrue(indexHelper.convert(indexOptions.background(false), true).isBackground());
  assertTrue(indexHelper.convert(indexOptions.background(true), true).isBackground());
  assertTrue(indexHelper.convert(indexOptions.background(true), false).isBackground());
  assertFalse(indexHelper.convert(indexOptions.background(false), false).isBackground());
}
origin: org.wso2.extension.siddhi.store.mongodb/siddhi-store-mongodb

indexOptionsMap.put("bucketSize", expectedIndexOptions.getBucketSize());
indexOptionsMap.put("partialFilterExpression", expectedIndexOptions.getPartialFilterExpression());
indexOptionsMap.put("collation", expectedIndexOptions.getCollation());
indexOptionsMap.put("storageEngine", expectedIndexOptions.getStorageEngine());
origin: org.mongodb/mongodb-driver-core

    .storageEngine(toBsonDocument(model.getOptions().getStorageEngine()))
    .partialFilterExpression(toBsonDocument(model.getOptions().getPartialFilterExpression()))
    .collation(model.getOptions().getCollation())
);
com.mongodb.client.modelIndexOptionsgetCollation

Javadoc

Returns the collation options

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
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getSystemService (Context)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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