Changeset View
Changeset View
Standalone View
Standalone View
common/storage/entitystore.cpp
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Line(s) | 431 | [&](const QByteArray &key, const QByteArray &value) -> bool { | |||
---|---|---|---|---|---|
438 | return true; | 438 | return true; | ||
439 | }, | 439 | }, | ||
440 | [&](const DataStore::Error &error) { SinkWarningCtx(d->logCtx) << "Error during fullScan query: " << error.message; }); | 440 | [&](const DataStore::Error &error) { SinkWarningCtx(d->logCtx) << "Error during fullScan query: " << error.message; }); | ||
441 | 441 | | |||
442 | SinkTraceCtx(d->logCtx) << "Full scan retrieved " << keys.size() << " results."; | 442 | SinkTraceCtx(d->logCtx) << "Full scan retrieved " << keys.size() << " results."; | ||
443 | return keys.toList().toVector(); | 443 | return keys.toList().toVector(); | ||
444 | } | 444 | } | ||
445 | 445 | | |||
446 | QVector<QByteArray> EntityStore::indexLookup(const QByteArray &type, const QueryBase &query, QSet<QByteArray> &appliedFilters, QByteArray &appliedSorting) | 446 | QVector<QByteArray> EntityStore::indexLookup(const QByteArray &type, const QueryBase &query, QSet<QByteArrayList> &appliedFilters, QByteArray &appliedSorting) | ||
447 | { | 447 | { | ||
448 | if (!d->exists()) { | 448 | if (!d->exists()) { | ||
449 | SinkTraceCtx(d->logCtx) << "Database is not existing: " << type; | 449 | SinkTraceCtx(d->logCtx) << "Database is not existing: " << type; | ||
450 | return QVector<QByteArray>(); | 450 | return QVector<QByteArray>(); | ||
451 | } | 451 | } | ||
452 | return d->typeIndex(type).query(query, appliedFilters, appliedSorting, d->getTransaction(), d->resourceContext.instanceId()); | 452 | return d->typeIndex(type).query(query, appliedFilters, appliedSorting, d->getTransaction(), d->resourceContext.instanceId()); | ||
453 | } | 453 | } | ||
454 | 454 | | |||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |