1
0
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:
Colin Dellow
2018-03-15 23:04:11 -04:00
parent 8ba13f44d5
commit 1f4cebe2a6
3 changed files with 22 additions and 59 deletions

View File

@@ -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;
}