(self)
Send the table description to Qlik as meta data.
        Only used when the SSE is called from the Qlik load script.
Send the table description to Qlik as meta data.
        Only used when the SSE is called from the Qlik load script.
Send the table description to Qlik as meta data . Only used when the SSE is called from the Qlik load script .
def _send_table_description(self):
        """
        Send the table description to Qlik as meta data.
        Only used when the SSE is called from the Qlik load script.
        """
        
        # Set up the table description to send as metadata to Qlik
        self.table = SSE.TableDescription()
        self.table.name = "ClusteringResults"
        self.table.numberOfRows = len(self.response)

        # Set up fields for the table
        self.table.fields.add(name="key")
        self.table.fields.add(name=self.result_type[:-1], dataType=1)
        
        if self.debug:
            self._print_log(4)
        
        # Send table description
        table_header = (('qlik-tabledescription-bin', self.table.SerializeToString()),)
        self.context.send_initial_metadata(table_header)
def _send_table_description ( self ) : # Set up the table description to send as metadata to Qlik self . table = SSE . TableDescription ( ) self . table . name = "ClusteringResults" self . table . numberOfRows = len ( self . response ) # Set up fields for the table self . table . fields . add ( name = "key" ) self . table . fields . add ( name = self . result_type [ : - 1 ] , dataType = 1 ) if self . debug : self . _print_log ( 4 ) # Send table description table_header = ( ( 'qlik-tabledescription-bin' , self . table . SerializeToString ( ) ) , ) self . context . send_initial_metadata ( table_header )