| 181 | |
| 182 | template<std::floating_point T> |
| 183 | BitpackInfo<typename FloatCompression<T>::EncodedType> FloatCompression<T>::getBitpackInfo( |
| 184 | const CompressionMetadata& metadata) { |
| 185 | const auto& bitpackMetadata = metadata.getChild(BITPACKING_CHILD_IDX); |
| 186 | if (bitpackMetadata.isConstant()) { |
| 187 | const auto constValue = bitpackMetadata.min.get<EncodedType>(); |
| 188 | return {.bitWidth = 0, .hasNegative = (constValue < 0), .offset = constValue}; |
| 189 | } else { |
| 190 | return IntegerBitpacking<EncodedType>::getPackingInfo(bitpackMetadata); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | template<std::floating_point T> |
| 195 | bool FloatCompression<T>::canUpdateInPlace(std::span<const T> value, |
nothing calls this directly
no test coverage detected