21 namespace foreign_storage {
35 template <
typename V,
typename T, T conversion_denominator,
typename NullType = V>
40 const parquet::ColumnDescriptor* parquet_column_descriptor)
43 parquet_column_descriptor) {
44 CHECK(parquet_column_descriptor->logical_type()->is_time());
48 int8_t* omnisci_data_bytes)
override {
49 const auto& parquet_data_value =
reinterpret_cast<const T*
>(parquet_data_bytes)[0];
50 auto& omnisci_data_value =
reinterpret_cast<V*
>(omnisci_data_bytes)[0];
51 omnisci_data_value = parquet_data_value / conversion_denominator;
void encodeAndCopy(const int8_t *parquet_data_bytes, int8_t *omnisci_data_bytes) override
An AbstractBuffer is a unit of data management for a data manager.
specifies the content in-memory of a row in the column metadata table
ParquetTimeEncoder(Data_Namespace::AbstractBuffer *buffer, const ColumnDescriptor *column_desciptor, const parquet::ColumnDescriptor *parquet_column_descriptor)