use of org.bboxdb.storage.memtable.Memtable in project bboxdb by jnidzwetzki.
the class TupleStoreInstanceManager method activateNewMemtable.
/**
* Activate a new memtable, the old memtable is transfered into the
* unflushed memtable list and also pushed into the flush queue
*
* @param newMemtable
* @return
*/
public synchronized Memtable activateNewMemtable(final Memtable newMemtable) {
if (memtable != null) {
unflushedMemtables.add(memtable);
}
final Memtable oldMemtable = memtable;
memtable = newMemtable;
return oldMemtable;
}
Aggregations