Home  >  Article  >  Database  >  [Leveldb] 源码分析之一接口文件介绍

[Leveldb] 源码分析之一接口文件介绍

WBOY
WBOYOriginal
2016-06-07 17:37:59968browse

./include ../leveldb ../../db.h db.h 定义了基本的操作接口,包括 Put、Write、Delete等。这里Put,Write等接口用纯虚函数实现,但是却有默认实现。 ../../cache.h lebeldb 缓存的接口,用LUR算法实现,提供了添加、删除、查找等接口 ../../comparator.h 压

./include
../leveldb
../../db.h
      db.h 定义了基本的操作接口,,包括 Put、Write、Delete等。这里Put,Write等接口用纯虚函数实现,但是却有默认实现。
../../cache.h
      lebeldb 缓存的接口,用LUR算法实现,提供了添加、删除、查找等接口
../../comparator.h
      压缩算法接口
../../env.h
      环境设置,一些文件操作
../../filter_policy.h
      一些过滤的方式,定义了一系列接口,以供实现
../../iterator.h
      迭代器的一系列操作,包括First,end,seek等
../../options.h
      定义对数据库的一系列操作,读写等
../../slice.h
      数据元
../../status.h
      返回状态,OK,IOERROR
../../table_builder.h
      用于存储Table的控制器
../../table.h
      实现各种写操作,包括删除标识位

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn