code: @Override
      public void flush() {
          if (isStarted) {
              flushBuffer();
              //To avoid memory leaks...
              Arrays.fill(buffer, null);
              isStarted = false;
          }
      }
docs: /* (non-Javadoc)
  @see org.zoodb.internal.model1p.DataSink#flush()