Go to the documentation of this file.
23 auto&
q = _addQuery<dq::entity::All>();
30 auto&
q = _addQuery<dq::entity::Single>();
37 auto&
q = _addQuery<dq::entity::Single>();
38 toIce(
q.timestamp, timestamp);
44 auto&
q = _addQuery<dq::entity::TimeRange>();
52 auto&
q = _addQuery<dq::entity::TimeApprox>();
53 toIce(
q.timestamp, timestamp);
61 auto&
q = _addQuery<dq::entity::IndexRange>();
70 auto&
q = _addQuery<dq::entity::BeforeOrAtTime>();
71 toIce(
q.timestamp, timestamp);
80 auto&
q = _addQuery<dq::entity::BeforeTime>();
81 toIce(
q.timestamp, timestamp);
82 toIce(
q.maxEntries, maxEntries);
98 auto&
q = _addQuery<dq::provider::All>();
105 auto&
q = _addQuery<dq::provider::Single>();
112 auto&
q = _addQuery<dq::provider::Regex>();
113 q.entityNameRegex = regex;
119 query->entityQueries = childQueries;
135 auto&
q = _addQuery<dq::core::All>();
142 auto&
q = _addQuery<dq::core::Single>();
143 q.providerSegmentName = name;
149 auto&
q = _addQuery<dq::core::Regex>();
150 q.providerSegmentNameRegex = regex;
156 query->providerSegmentQueries = childQueries;
172 auto&
q = _addQuery<dq::memory::All>();
179 auto&
q = _addQuery<dq::memory::Single>();
180 q.coreSegmentName = name;
185 auto&
q = _addQuery<dq::memory::Regex>();
186 q.coreSegmentNameRegex = regex;
192 query->coreSegmentQueries = childQueries;
EntitySelector & all() override
ProviderSegmentSelector & withNamesMatching(const std::string ®ex) override
SnapshotSelector & latest()
EntitySelector & entities()
Start specifying entities.
void _setChildQueries(armem::query::data::MemoryQueryPtr &query, const armem::query::data::CoreSegmentQuerySeq &childQueries) const override
SnapshotSelector & timeRange(Time min, Time max)
SnapshotSelector & snapshots()
Start specifying entity snapshots.
std::vector< T > max(const std::vector< T > &v1, const std::vector< T > &v2)
SnapshotSelector & all() override
CoreSegmentSelector & all() override
void _setChildQueries(armem::query::data::CoreSegmentQueryPtr &query, const armem::query::data::ProviderSegmentQuerySeq &childQueries) const override
std::vector< QueryT > _queries
SnapshotSelector & beforeTime(Time timestamp, long maxEntries=1)
void toIce(std::map< IceKeyT, IceValueT > &iceMap, const boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
EntitySelector & withNamesMatching(const std::string ®ex) override
CoreSegmentSelector & withName(const std::string &name) override
SnapshotSelector & atTimeApprox(Time timestamp, Duration eps)
Represents a point in time.
armem::query::data::EntityQuerySeq buildQueries() const
EntitySelector & withName(const std::string &name) override
ProviderSegmentSelector & withName(const std::string &name) override
SnapshotSelector & atTime(Time timestamp)
CoreSegmentSelector & withNamesMatching(const std::string ®ex) override
SnapshotSelector & beforeOrAtTime(Time timestamp)
std::vector< T > min(const std::vector< T > &v1, const std::vector< T > &v2)
ProviderSegmentSelector & providerSegments()
Start specifying provider segments.
void _setChildQueries(armem::query::data::ProviderSegmentQueryPtr &query, const armem::query::data::EntityQuerySeq &childQueries) const override
SnapshotSelector & indexRange(long first, long last)
ProviderSegmentSelector & all() override
static DateTime Invalid()
void toIce(armem::query::data::Input &ice, const QueryInput &input)