java.lang.Object
org.apache.shardingsphere.mode.repository.standalone.file.FileRepository
All Implemented Interfaces:
org.apache.shardingsphere.mode.persist.PersistRepository, StandalonePersistRepository, org.apache.shardingsphere.spi.lifecycle.SPIPostProcessor, org.apache.shardingsphere.spi.type.required.RequiredSPI, org.apache.shardingsphere.spi.type.typed.TypedSPI

public final class FileRepository extends Object implements StandalonePersistRepository
File repository.
  • Constructor Details

    • FileRepository

      public FileRepository()
  • Method Details

    • init

      public void init(Properties props)
      Specified by:
      init in interface org.apache.shardingsphere.spi.lifecycle.SPIPostProcessor
    • get

      public String get(String key)
      Specified by:
      get in interface org.apache.shardingsphere.mode.persist.PersistRepository
    • getChildrenKeys

      public List<String> getChildrenKeys(String key)
      Specified by:
      getChildrenKeys in interface org.apache.shardingsphere.mode.persist.PersistRepository
    • persist

      public void persist(String key, String value)
      Specified by:
      persist in interface org.apache.shardingsphere.mode.persist.PersistRepository
    • delete

      public void delete(String key)
      Specified by:
      delete in interface org.apache.shardingsphere.mode.persist.PersistRepository
    • close

      public void close()
      Specified by:
      close in interface org.apache.shardingsphere.mode.persist.PersistRepository
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface org.apache.shardingsphere.spi.type.required.RequiredSPI
    • getType

      public String getType()
      Specified by:
      getType in interface org.apache.shardingsphere.spi.type.typed.TypedSPI