MCPcopy Create free account
hub / github.com/apache/madlib / printout_index

Function printout_index

methods/svec/src/pg_gp/SparseData.c:199–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 elog(NOTICE,"doubles:%s",output_str);
198}
199void printout_index(char *ix, int num_values, int stop)
200{
201 (void) stop; /* avoid warning about unused parameter */
202 char *output_str = (char *)palloc(sizeof(char)*((num_values*7)+1));
203 char *str = output_str;
204 int numout;
205 elog(NOTICE,"num_values=%d",num_values);
206 for (int i=0; i<num_values; i++,ix+=int8compstoragesize(ix)) {
207 numout=snprintf(str,7,"%lld,",(long long int)compword_to_int8(ix));
208 str+=numout;
209 }
210 *str = '\0';
211 elog(NOTICE,"index:%s",output_str);
212}
213void printout_sdata(SparseData sdata, char *msg, int stop)
214{
215 elog(NOTICE,"%s ==> unvct,tvct,ilen,dlen,datatype=%d,%d,%d,%d,%d",

Callers 1

printout_sdataFunction · 0.85

Calls 1

compword_to_int8Function · 0.85

Tested by

no test coverage detected