aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/formats/arrow/accessor/common/chunk_data.cpp
blob: 2356af1bd438b909d6c0c092a126fd10fe1e53e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "chunk_data.h"

#include <ydb/library/actors/core/log.h>

namespace NKikimr::NArrow::NAccessor {

TChunkConstructionData::TChunkConstructionData(const ui32 recordsCount, const std::shared_ptr<arrow::Scalar>& defaultValue,
    const std::shared_ptr<arrow::DataType>& columnType, const std::shared_ptr<NSerialization::ISerializer>& defaultSerializer)
    : RecordsCount(recordsCount)
    , DefaultValue(defaultValue)
    , ColumnType(columnType)
    , DefaultSerializer(defaultSerializer) {
    AFL_VERIFY(ColumnType);
    AFL_VERIFY(RecordsCount);
    AFL_VERIFY(!!DefaultSerializer);
}

}   // namespace NKikimr::NArrow::NAccessor