|
|
unique_ptr< BaseReservoirSampling > | base_reservoir_sample |
| |
|
SampleType | type |
| | The sample type.
|
| |
|
bool | destroyed |
| | has the sample been destroyed due to updates to the referenced table
|
| |
◆ BlockingSample()
| duckdb::BlockingSample::BlockingSample |
( |
int64_t |
seed = -1 | ) |
|
|
inlineexplicit |
47815 : base_reservoir_sample(make_uniq<BaseReservoirSampling>(seed)),
type(SampleType::BLOCKING_SAMPLE),
47817 }
bool destroyed
has the sample been destroyed due to updates to the referenced table
Definition duckdb.hpp:47811
SampleType type
The sample type.
Definition duckdb.hpp:47809
◆ ~BlockingSample()
| virtual duckdb::BlockingSample::~BlockingSample |
( |
| ) |
|
|
inlinevirtual |
◆ AddToReservoir()
◆ Copy()
◆ GetChunk()
◆ Cast() [1/2]
| TARGET & duckdb::BlockingSample::Cast |
( |
| ) |
|
|
inline |
47841 {
47842 if (
type != TARGET::TYPE && TARGET::TYPE != SampleType::BLOCKING_SAMPLE) {
47843 throw InternalException("Failed to cast sample to type - sample type mismatch");
47844 }
47845 return reinterpret_cast<TARGET &>(*this);
47846 }
◆ Cast() [2/2]
47849 {
47850 if (
type != TARGET::TYPE && TARGET::TYPE != SampleType::BLOCKING_SAMPLE) {
47851 throw InternalException("Failed to cast sample to type - sample type mismatch");
47852 }
47853 return reinterpret_cast<const TARGET &>(*this);
47854 }
The documentation for this class was generated from the following file: