保存对象的大致过程
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)
本文详细介绍了对象从内存到持久化存储的整个过程,包括odb.store、LocalStrageEngine.internalStore等关键步骤,直至最终通过RandomAccessFile完成物理写入。
3万+

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



