Set of relations, used in the join graph.
More...
#include <duckdb.hpp>
|
| static bool | IsSubset (JoinRelationSet &super, JoinRelationSet &sub) |
| | Returns true if sub is a subset of super.
|
|
|
unsafe_unique_array< idx_t > | relations |
|
idx_t | count |
Set of relations, used in the join graph.
◆ JoinRelationSet()
| duckdb::JoinRelationSet::JoinRelationSet |
( |
unsafe_unique_array< idx_t > | relations, |
|
|
idx_t | count ) |
|
inline |
20558 : relations(std::move(relations)), count(count) {
20559 }
◆ ToString()
| string duckdb::JoinRelationSet::ToString |
( |
| ) |
const |
312061 {
312062 string result = "[";
312064 result += "]";
312065 return result;
312066}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497
std::string to_string(const T &value)
Definition duckdb.cpp:19425
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ IsSubset()
| bool duckdb::JoinRelationSet::IsSubset |
( |
JoinRelationSet & | super, |
|
|
JoinRelationSet & | sub ) |
|
static |
Returns true if sub is a subset of super.
312070 {
312071 D_ASSERT(
sub.count > 0);
312072 if (
sub.count > super.count) {
312073 return false;
312074 }
312076 for (
idx_t i = 0; i < super.count; i++) {
312077 if (
sub.relations[j] == super.relations[i]) {
312078 j++;
312079 if (j ==
sub.count) {
312080 return true;
312081 }
312082 }
312083 }
312084 return false;
312085}
GMat sub(const GMat &src1, const GMat &src2, int ddepth=-1)
The documentation for this struct was generated from the following files: