original_string: private function getIntersectedTable(DataTable $table, Row $row)
      {
          if ($this->isPivotDimensionSubtable()) {
              return $this->loadSubtable($table, $row);
          }
  
          if ($this->isFetchingBySegmentEnabled) {
              $segment = $row->getMetadata('segment');
              if (empty($segment)) {
                  $segmentValue = $row->getMetadata('segmentValue');
                  if ($segmentValue === false) {
                      $segmentValue = $row->getColumn('label');
                  }
  
                  $segmentName = $this->thisReportDimensionSegment->getSegment();
                  if (empty($segmentName)) {
                      throw new \Exception("Invalid segment found when pivoting: " . $this->thisReportDimensionSegment->getName());
                  }
  
                  $segment = $segmentName . "==" . urlencode($segmentValue);
              }
              return $this->fetchIntersectedWithThisBySegment($table, $segment);
          }
  
          // should never occur, unless checkSupportedPivot() fails to catch an unsupported pivot
          throw new Exception("Unexpected error, cannot fetch intersected table.");
      }
code: private function getIntersectedTable(DataTable $table, Row $row)
      {
          if ($this->isPivotDimensionSubtable()) {
              return $this->loadSubtable($table, $row);
          }
  
          if ($this->isFetchingBySegmentEnabled) {
              $segment = $row->getMetadata('segment');
              if (empty($segment)) {
                  $segmentValue = $row->getMetadata('segmentValue');
                  if ($segmentValue === false) {
                      $segmentValue = $row->getColumn('label');
                  }
  
                  $segmentName = $this->thisReportDimensionSegment->getSegment();
                  if (empty($segmentName)) {
                      throw new \Exception("Invalid segment found when pivoting: " . $this->thisReportDimensionSegment->getName());
                  }
  
                  $segment = $segmentName . "==" . urlencode($segmentValue);
              }
              return $this->fetchIntersectedWithThisBySegment($table, $segment);
          }
  
          // should never occur, unless checkSupportedPivot() fails to catch an unsupported pivot
          throw new Exception("Unexpected error, cannot fetch intersected table.");
      }
code_tokens: private function getIntersectedTable ( DataTable $ table , Row $ row ) { if ( $ this -> isPivotDimensionSubtable ( ) ) { return $ this -> loadSubtable ( $ table , $ row ) ; } if ( $ this -> isFetchingBySegmentEnabled ) { $ segment = $ row -> getMetadata ( 'segment' ) ; if ( empty ( $ segment ) ) { $ segmentValue = $ row -> getMetadata ( 'segmentValue' ) ; if ( $ segmentValue === false ) { $ segmentValue = $ row -> getColumn ( 'label' ) ; } $ segmentName = $ this -> thisReportDimensionSegment -> getSegment ( ) ; if ( empty ( $ segmentName ) ) { throw new \ Exception ( "Invalid segment found when pivoting: " . $ this -> thisReportDimensionSegment -> getName ( ) ) ; } $ segment = $ segmentName . "==" . urlencode ( $ segmentValue ) ; } return $ this -> fetchIntersectedWithThisBySegment ( $ table , $ segment ) ; } // should never occur, unless checkSupportedPivot() fails to catch an unsupported pivot throw new Exception ( "Unexpected error, cannot fetch intersected table." ) ; }
docstring: An intersected table is a table that describes visits by a certain dimension for the visits
  represented by a row in another table. This method fetches intersected tables either via
  subtable or by using a segment. Read the class docs for more info.
docstring_tokens: An intersected table is a table that describes visits by a certain dimension for the visits represented by a row in another table . This method fetches intersected tables either via subtable or by using a segment . Read the class docs for more info .