RedoLogChunk(int id, Map<String, String> config) { this.id = id; // 不使用ObjectDataType,因为ObjectDataType需要自动侦测,会有一些开销 this.keyType = new RedoLogKeyType(); this.valueType = new RedoLogValueType(); skipListMap = new ConcurrentSkipListMap<>(new KeyComparator<Long>(keyType)); String chunkFileName = getChunkFileName(config, id); fileStorage = new FileStorage(); fileStorage.open(chunkFileName, config); pos = fileStorage.size(); if (pos > 0) read(); }