OmniSciDB  2e3a973ef4
foreign_storage::anonymous_namespace{ParquetDataWrapper.cpp} Namespace Reference

Functions

template<typename T >
std::pair< typename std::map< ChunkKey, T >::iterator, typename std::map< ChunkKey, T >::iterator > prefix_range (std::map< ChunkKey, T > &map, const ChunkKey &chunk_key_prefix)
 

Function Documentation

◆ prefix_range()

template<typename T >
std::pair<typename std::map<ChunkKey, T>::iterator, typename std::map<ChunkKey, T>::iterator> foreign_storage::anonymous_namespace{ParquetDataWrapper.cpp}::prefix_range ( std::map< ChunkKey, T > &  map,
const ChunkKey chunk_key_prefix 
)

Definition at line 37 of file ParquetDataWrapper.cpp.

References parse_ast::end.

37  {
38  ChunkKey chunk_key_prefix_sentinel = chunk_key_prefix;
39  chunk_key_prefix_sentinel.push_back(std::numeric_limits<int>::max());
40  auto begin = map.lower_bound(chunk_key_prefix);
41  auto end = map.upper_bound(chunk_key_prefix_sentinel);
42  return std::make_pair(begin, end);
43 }
std::vector< int > ChunkKey
Definition: types.h:37