com.github.ltsopensource.kv.index.Index Maven / Gradle / Ivy
package com.github.ltsopensource.kv.index;
import com.github.ltsopensource.kv.Entry;
import com.github.ltsopensource.kv.iterator.DBIterator;
import com.github.ltsopensource.kv.txlog.StoreTxLogPosition;
/**
* @author Robert HG ([email protected]) on 12/18/15.
*/
public interface Index {
IndexItem getIndexItem(K key);
IndexItem removeIndexItem(StoreTxLogPosition txLogResult, K key);
void putIndexItem(StoreTxLogPosition txLogResult, K key, IndexItem indexItem);
public int size();
public boolean containsKey(K key);
DBIterator> iterator();
StoreTxLogPosition lastTxLog();
}