| 133 | } |
| 134 | |
| 135 | void RleV2BitUnpackAvx512Test::runTest(RleVersion version, uint64_t numValues, int64_t start, |
| 136 | int64_t delta, bool random, bool isSigned, |
| 137 | uint8_t bitWidth, uint64_t blockSize, uint64_t numNulls) { |
| 138 | MemoryOutputStream memStream(DEFAULT_MEM_STREAM_SIZE); |
| 139 | |
| 140 | std::unique_ptr<RleEncoder> encoder = getEncoder(version, memStream, isSigned); |
| 141 | |
| 142 | char* notNull = numNulls == 0 ? nullptr : new char[numValues]; |
| 143 | int64_t* data = new int64_t[numValues]; |
| 144 | generateDataForBits(numValues, start, delta, random, data, bitWidth, numNulls, notNull); |
| 145 | encoder->add(data, numValues, notNull); |
| 146 | encoder->flush(); |
| 147 | |
| 148 | vectorDecodeAndVerify(version, memStream, data, numValues, notNull, blockSize, isSigned); |
| 149 | delete[] data; |
| 150 | delete[] notNull; |
| 151 | } |
| 152 | |
| 153 | TEST_P(RleV2BitUnpackAvx512Test, RleV2_basic_vector_decode_1bit) { |
| 154 | uint8_t bitWidth = 1; |
nothing calls this directly
no test coverage detected