package com.github.darlinglele.bitcask; import java.io.Serializable; import java.util.HashMap; public class Indexer implements Serializable { private final HashMap<String, Index> map; public Indexer() { this.map = new HashMap<>(); } public Index get(String key) { return map.get(key); } public void put(String key, Index index) { map.put(key, index); } }