OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChunkMetadata.h File Reference
#include <cstddef>
#include "../Shared/sqltypes.h"
#include "Shared/StringTransform.h"
#include "Shared/types.h"
#include "Logger/Logger.h"
+ Include dependency graph for ChunkMetadata.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ChunkStats
 
struct  ChunkMetadata
 

Typedefs

using ChunkMetadataMap = std::map< int, std::shared_ptr< ChunkMetadata >>
 
using ChunkMetadataVector = std::vector< std::pair< ChunkKey, std::shared_ptr< ChunkMetadata >>>
 

Functions

int64_t extract_min_stat_int_type (const ChunkStats &stats, const SQLTypeInfo &ti)
 
int64_t extract_max_stat_int_type (const ChunkStats &stats, const SQLTypeInfo &ti)
 
double extract_min_stat_fp_type (const ChunkStats &stats, const SQLTypeInfo &ti)
 
double extract_max_stat_fp_type (const ChunkStats &stats, const SQLTypeInfo &ti)
 

Typedef Documentation

using ChunkMetadataMap = std::map<int, std::shared_ptr<ChunkMetadata>>

Definition at line 170 of file ChunkMetadata.h.

using ChunkMetadataVector = std::vector<std::pair<ChunkKey, std::shared_ptr<ChunkMetadata>>>

Definition at line 172 of file ChunkMetadata.h.

Function Documentation

double extract_max_stat_fp_type ( const ChunkStats stats,
const SQLTypeInfo ti 
)
inline

Definition at line 166 of file ChunkMetadata.h.

References extract_fp_type_from_datum(), and ChunkStats::max.

Referenced by Executor::canSkipFragmentForFpQual(), and getLeafColumnRange().

166  {
167  return extract_fp_type_from_datum(stats.max, ti);
168 }
double extract_fp_type_from_datum(const Datum datum, const SQLTypeInfo &ti)
Definition: Datum.cpp:481

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t extract_max_stat_int_type ( const ChunkStats stats,
const SQLTypeInfo ti 
)
inline

Definition at line 158 of file ChunkMetadata.h.

References extract_int_type_from_datum(), and ChunkStats::max.

Referenced by getLeafColumnRange(), Executor::isFragmentFullyDeleted(), anonymous_namespace{StorageIOFacility.h}::should_recompute_metadata(), and Executor::skipFragment().

158  {
159  return extract_int_type_from_datum(stats.max, ti);
160 }
int64_t extract_int_type_from_datum(const Datum datum, const SQLTypeInfo &ti)
Definition: Datum.cpp:455

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double extract_min_stat_fp_type ( const ChunkStats stats,
const SQLTypeInfo ti 
)
inline

Definition at line 162 of file ChunkMetadata.h.

References extract_fp_type_from_datum(), and ChunkStats::min.

Referenced by Executor::canSkipFragmentForFpQual(), and getLeafColumnRange().

162  {
163  return extract_fp_type_from_datum(stats.min, ti);
164 }
double extract_fp_type_from_datum(const Datum datum, const SQLTypeInfo &ti)
Definition: Datum.cpp:481

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t extract_min_stat_int_type ( const ChunkStats stats,
const SQLTypeInfo ti 
)
inline

Definition at line 154 of file ChunkMetadata.h.

References extract_int_type_from_datum(), and ChunkStats::min.

Referenced by getLeafColumnRange(), Executor::isFragmentFullyDeleted(), anonymous_namespace{StorageIOFacility.h}::should_recompute_metadata(), and Executor::skipFragment().

154  {
155  return extract_int_type_from_datum(stats.min, ti);
156 }
int64_t extract_int_type_from_datum(const Datum datum, const SQLTypeInfo &ti)
Definition: Datum.cpp:455

+ Here is the call graph for this function:

+ Here is the caller graph for this function: