Class IndexOptionDefaults


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

      • IndexOptionDefaults

        public IndexOptionDefaults()
      • IndexOptionDefaults

        public IndexOptionDefaults​(JsonObject json)
    • Method Detail

      • setStorageEngine

        public IndexOptionDefaults setStorageEngine​(JsonObject storageEngine)
        Sets the default storage engine options document for indexes.
        Parameters:
        storageEngine - the storage engine options
        Returns:
        this
      • getStorageEngine

        public JsonObject getStorageEngine()
        Gets the default storage engine options document for indexes.
        Returns:
        the storage engine options