public function valid()
{
if (!$this->valid && $this->messageSetSize != 0) {
$this->partition->setMessageOffset($this->offset);
// one partition iterator end
\Kafka\Protocol\Fetch\Helper\Helper::onPartitionEof($this->partition);
}
return $this->valid;
}