* Make bloom tuple from values. */
| 290 | * Make bloom tuple from values. |
| 291 | */ |
| 292 | BloomTuple * |
| 293 | BloomFormTuple(BloomState *state, ItemPointer iptr, Datum *values, bool *isnull) |
| 294 | { |
| 295 | int i; |
| 296 | BloomTuple *res = (BloomTuple *) palloc0(state->sizeOfBloomTuple); |
| 297 | |
| 298 | res->heapPtr = *iptr; |
| 299 | |
| 300 | /* Blooming each column */ |
| 301 | for (i = 0; i < state->nColumns; i++) |
| 302 | { |
| 303 | /* skip nulls */ |
| 304 | if (isnull[i]) |
| 305 | continue; |
| 306 | |
| 307 | signValue(state, res->sign, values[i], i); |
| 308 | } |
| 309 | |
| 310 | return res; |
| 311 | } |
| 312 | |
| 313 | /* |
| 314 | * Add new bloom tuple to the page. Returns true if new tuple was successfully |
no test coverage detected