/** * Flushes the memstore if the size is large enough. * * @throws IOException */ private void flushMemStoreIfNecessary() throws IOException { if (memstore.heapSize() >= flushSize) { flushMemStore(); } }