code: @Override
    public void beginSlice() throws IOException {
      writer = createWriter(sliceCount++);
      writer.setContext(getContext());
      writer.beginShard();
      writer.beginSlice();
    }
docs: Creates a new writer.