/** @param null|string $bufferName */ public function flush($bufferName = null) { foreach ($this->getBuffers($bufferName) as $path => $buffer) { $this->writer->appendRows($path, $buffer); $this->removeBuffer($path); } }
/** @param null|string $bufferName */ public function discard($bufferName = null) { foreach ($this->getBuffers($bufferName) as $path => $buffer) { $this->writer->appendRows($path, $buffer); } }