@Override public void flush() { blocks.flush(); index.flush(); if (blocksDS instanceof Flushable) { ((Flushable) blocksDS).flush(); } if (indexDS instanceof Flushable) { ((Flushable) indexDS).flush(); } }