private function setVisitorIds(DataTable $dataTable)
    {
        foreach ($dataTable->getRows() as $row) {
            $userId = $row->getColumn('label');
            if (isset($this->visitorIdsUserIdsMap[$userId])) {
                $row->setMetadata(self::VISITOR_ID_FIELD, $this->visitorIdsUserIdsMap[$userId]);
            }
        }
    }
private function setVisitorIds(DataTable $dataTable)
    {
        foreach ($dataTable->getRows() as $row) {
            $userId = $row->getColumn('label');
            if (isset($this->visitorIdsUserIdsMap[$userId])) {
                $row->setMetadata(self::VISITOR_ID_FIELD, $this->visitorIdsUserIdsMap[$userId]);
            }
        }
    }
private function setVisitorIds ( DataTable $ dataTable ) { foreach ( $ dataTable -> getRows ( ) as $ row ) { $ userId = $ row -> getColumn ( 'label' ) ; if ( isset ( $ this -> visitorIdsUserIdsMap [ $ userId ] ) ) { $ row -> setMetadata ( self :: VISITOR_ID_FIELD , $ this -> visitorIdsUserIdsMap [ $ userId ] ) ; } } }
Fill visitor ID as metadata before actual inserting rows to DB.

@param DataTable $dataTable
Fill visitor ID as metadata before actual inserting rows to DB .