Class ServiceConfig.D1

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

public static class ServiceConfig.D1 extends Object implements ServiceConfig
Configuration for service d1.
  • Field Details

    • accountId

      public final String accountId

      Set the account id of cloudflare api.

    • databaseId

      public final String databaseId

      Set the database id of cloudflare api.

    • keyField

      public final String keyField

      Set the key field of D1 Database.

    • root

      public final String root

      Set the working directory of OpenDAL.

    • table

      public final String table

      Set the table of D1 Database.

    • token

      public final String token

      Set the token of cloudflare api.

    • valueField

      public final String valueField

      Set the value field of D1 Database.

  • Constructor Details

    • D1

      public D1()
  • 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