Class MongosKt

  • All Implemented Interfaces:

    
    public final class MongosKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static CountOptions defaultCountOptions
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final CountOptions getDefaultCountOptions() By default, do not count more than 1000000 documents (for large databases)
      final static MongoDatabase getDatabase(String databaseNameProperty) Return the sync database specified in the databaseNameProperty.
      final static MongoDatabase getAsyncDatabase(String databaseNameProperty) Return the async database specified in the databaseNameProperty.
      final static <T extends Any> Unit watch(MongoCollection<T> $self, FullDocument fullDocument, Function1<ChangeStreamDocument<T>, Unit> listener)
      final static <T extends Any> String ensureIndex(MongoCollection<T> $self, KProperty<?> properties, IndexOptions indexOptions)
      final static <T extends Any> String ensureIndex(MongoCollection<T> $self, Bson keys, IndexOptions indexOptions)
      final static <T extends Any> String ensureIndex(MongoCollection<T> $self, String keys, IndexOptions indexOptions)
      final static <T extends Any> String ensureUniqueIndex(MongoCollection<T> $self, KProperty<?> properties, IndexOptions indexOptions)
      final static Boolean isDocumentDB()
      final static Object transformData(Object data) Transform json data to prevent AWS DocumentDB field name restrictions Amazon DocumentDB does not support dots “.
      final static Boolean pingMongoDatabase(String databaseName)
      final static <T extends Any> FindIterable<T> safeCollation(FindIterable<T> $self, Collation collation) Set collation if database supports it (ie not with DocumentDB)
      final static <T extends Any> AggregateIterable<T> safeCollation(AggregateIterable<T> $self, Collation collation)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDefaultCountOptions

         final CountOptions getDefaultCountOptions()

        By default, do not count more than 1000000 documents (for large databases)

      • getDatabase

         final static MongoDatabase getDatabase(String databaseNameProperty)

        Return the sync database specified in the databaseNameProperty. if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).

      • getAsyncDatabase

         final static MongoDatabase getAsyncDatabase(String databaseNameProperty)

        Return the async database specified in the databaseNameProperty. if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).

      • watch

         final static <T extends Any> Unit watch(MongoCollection<T> $self, FullDocument fullDocument, Function1<ChangeStreamDocument<T>, Unit> listener)
      • ensureIndex

         final static <T extends Any> String ensureIndex(MongoCollection<T> $self, Bson keys, IndexOptions indexOptions)
      • ensureIndex

         final static <T extends Any> String ensureIndex(MongoCollection<T> $self, String keys, IndexOptions indexOptions)
      • transformData

         final static Object transformData(Object data)

        Transform json data to prevent AWS DocumentDB field name restrictions Amazon DocumentDB does not support dots “.” in a document field name

      • safeCollation

         final static <T extends Any> FindIterable<T> safeCollation(FindIterable<T> $self, Collation collation)

        Set collation if database supports it (ie not with DocumentDB)

      • safeCollation

         final static <T extends Any> AggregateIterable<T> safeCollation(AggregateIterable<T> $self, Collation collation)