sqlite-parquet-vtable/parquet/parquet_filter.cc

48 lines
807 B
C++
Raw Normal View History

#include "parquet_filter.h"
Constraint::Constraint(
int column,
ConstraintOperator op,
ValueType type,
bool boolValue,
2018-03-13 00:42:50 +00:00
int64_t intValue,
double doubleValue,
std::vector<unsigned char> blobValue
) {
this->column = column;
this->op = op;
this->type = type;
this->boolValue = boolValue;
this->intValue = intValue;
this->doubleValue = doubleValue;
this->blobValue = blobValue;
}
int Constraint::getColumn() {
return column;
}
ConstraintOperator Constraint::getOperator() {
return op;
}
ValueType Constraint::getType() {
return type;
}
bool Constraint::getBool() {
return boolValue;
}
2018-03-13 00:42:50 +00:00
int64_t Constraint::getInt() {
return intValue;
}
double Constraint::getDouble() {
return doubleValue;
}
std::vector<unsigned char> Constraint::getBytes() {
return blobValue;
}