mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-09-16 22:49:59 +00:00
Don't use accessors
This drops the `= 'Dawson Creek'` query from 210ms to 145ms. Maybe inlining would have been an option here? I'm not familiar enough with g++ to know. :(
This commit is contained in:
@@ -18,31 +18,3 @@ Constraint::Constraint(
|
||||
if(type == Text)
|
||||
stringValue = std::string((char*)&blobValue[0], blobValue.size());
|
||||
}
|
||||
|
||||
int Constraint::getColumn() {
|
||||
return column;
|
||||
}
|
||||
|
||||
ConstraintOperator Constraint::getOperator() {
|
||||
return op;
|
||||
}
|
||||
|
||||
ValueType Constraint::getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
int64_t Constraint::getInt() {
|
||||
return intValue;
|
||||
}
|
||||
|
||||
double Constraint::getDouble() {
|
||||
return doubleValue;
|
||||
}
|
||||
|
||||
const std::vector<unsigned char>& Constraint::getBytes() {
|
||||
return blobValue;
|
||||
}
|
||||
|
||||
const std::string& Constraint::getString() {
|
||||
return stringValue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user