Class ServiceConfig.Gridfs

java.lang.Object
org.apache.opendal.ServiceConfig.Gridfs
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Gridfs extends Object implements ServiceConfig
Configuration for service gridfs.
  • Field Details

    • bucket

      public final String bucket

      The bucket name of the MongoDB GridFs service to read/write.

    • chunkSize

      public final Integer chunkSize

      The chunk size of the MongoDB GridFs service used to break the user file into chunks.

    • connectionString

      public final String connectionString

      The connection string of the MongoDB service.

    • database

      public final String database

      The database name of the MongoDB GridFs service to read/write.

    • root

      public final String root

      The working directory, all operations will be performed under it.

  • Constructor Details

    • Gridfs

      public Gridfs()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map