类 StorageFactory


  • public final class StorageFactory
    extends java.lang.Object
    Ket-value Storage factory.
    作者:
    liaochuntao
    • 构造器详细资料

      • StorageFactory

        public StorageFactory()
    • 方法详细资料

      • createKvStorage

        public static KvStorage createKvStorage​(KvStorage.KvType type,
                                                java.lang.String label,
                                                java.lang.String baseDir)
                                         throws java.lang.Exception
        Create KvStorage implementation.
        参数:
        type - type of KvStorage
        label - label for RocksStorage
        baseDir - base dir of storage file.
        返回:
        implementation of KvStorage
        抛出:
        java.lang.Exception - exception during creating KvStorage