@@ -0,0 +1,931 @@
+/*%0A * Copyright (c) 2016. emengjzs. All rights reserved.%0A */%0A%0Apackage emengjzs.emengdb.db;%0A%0Aimport emengjzs.emengdb.api.EmengDB;%0A%0A/**%0A * Created by emengjzs on 2016/12/25.%0A */%0Apublic class EmengdbImpt implements EmengDB %7B%0A%0A    private MemTable table;%0A%0A%0A    public EmengdbImpt() %7B%0A        table = new MemTable(new InternalKeyComparator());%0A    %7D%0A%0A    @Override%0A    public Slice get(Slice key) %7B%0A        return table.get(new LookupKey(key, table.getSeqNum())).value;%0A    %7D%0A%0A    @Override%0A    public void put(Slice key, Slice value) %7B%0A        put(key, ValueType.VALUE, value.toBytes());%0A    %7D%0A%0A    @Override%0A    public void del(Slice key) %7B%0A        put(key, ValueType.DELETE, new byte%5B0%5D);%0A    %7D%0A%0A%0A    private void put(Slice key, ValueType type, byte%5B%5D value) %7B%0A        long seqBase = table.getSeqNum(), seqNum = seqBase;%0A%0A        table.add(seqNum ++, type, key.toBytes(), value);%0A%0A        table.addSeqNum(seqNum - seqBase);%0A    %7D%0A%0A%7D%0A

Add dbImpt