Class IndexOptionDefaults



  • public final class IndexOptionDefaults
    extends java.lang.Object
    The default options for a collection to apply on the creation of indexes.
    Since:
    3.2
    MongoDB documentation
    Create Collection
    Index options
    Since server release
    3.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bson.conversions.Bson getStorageEngine​()
      Gets the default storage engine options document for indexes.
      IndexOptionDefaults storageEngine​(org.bson.conversions.Bson storageEngine)
      Sets the default storage engine options document for indexes.
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

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

      • IndexOptionDefaults

        public IndexOptionDefaults​()
    • Method Detail

      • getStorageEngine

        @Nullable
        public org.bson.conversions.Bson getStorageEngine​()
        Gets the default storage engine options document for indexes.
        Returns:
        the storage engine options
      • storageEngine

        public IndexOptionDefaults storageEngine​(@Nullable
                                                 org.bson.conversions.Bson storageEngine)
        Sets the default storage engine options document for indexes.
        Parameters:
        storageEngine - the storage engine options
        Returns:
        this
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object