保存对象的大致过程
odb.store(object) =>
LocalStrageEngine.internalStore(object)=>
FileSystemInterface.writeLong(long i, boolean writeInTransaction, String label, int writeActionType)
FileSystemInterface.writeString(String s, boolean writeInTransaction, int totalSpace)
……
=>
MultiBufferedIO.writeBytes(byte[] bytes, int startIndex, int endIndex)=>
MuliBufferedFileIO.internalWrite(byte[] bs, int size) =>
RandomAccessFile.write(byte b[], int off, int len)
本文详细介绍了对象从内存到持久化存储的全过程,包括从应用层面对象的存储调用,到文件系统的具体实现,直至最终写入磁盘的具体步骤。
3万+

被折叠的 条评论
为什么被折叠?



