OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
foreign_storage::FileRegion Struct Reference

#include <CsvDataWrapper.h>

+ Collaboration diagram for foreign_storage::FileRegion:

Public Member Functions

 FileRegion (std::string name, size_t first_row_offset, size_t first_row_idx, size_t row_cnt, size_t region_sz)
 
 FileRegion ()
 
bool operator< (const FileRegion &other) const
 

Public Attributes

std::string filename
 
size_t first_row_file_offset
 
size_t first_row_index
 
size_t row_count
 
size_t region_size
 

Detailed Description

Data structure containing details about a CSV file region (subset of rows within a CSV file).

Definition at line 35 of file CsvDataWrapper.h.

Constructor & Destructor Documentation

foreign_storage::FileRegion::FileRegion ( std::string  name,
size_t  first_row_offset,
size_t  first_row_idx,
size_t  row_cnt,
size_t  region_sz 
)
inline

Definition at line 48 of file CsvDataWrapper.h.

53  : filename(name)
54  , first_row_file_offset(first_row_offset)
55  , first_row_index(first_row_idx)
56  , row_count(row_cnt)
57  , region_size(region_sz) {}
string name
Definition: setup.py:35
foreign_storage::FileRegion::FileRegion ( )
inline

Definition at line 58 of file CsvDataWrapper.h.

58 {}

Member Function Documentation

bool foreign_storage::FileRegion::operator< ( const FileRegion other) const
inline

Definition at line 59 of file CsvDataWrapper.h.

References first_row_file_offset.

59  {
60  return first_row_file_offset < other.first_row_file_offset;
61  }

Member Data Documentation

std::string foreign_storage::FileRegion::filename

Definition at line 37 of file CsvDataWrapper.h.

size_t foreign_storage::FileRegion::first_row_file_offset
size_t foreign_storage::FileRegion::first_row_index

Definition at line 42 of file CsvDataWrapper.h.

Referenced by foreign_storage::get_value(), and foreign_storage::set_value().

size_t foreign_storage::FileRegion::region_size

Definition at line 46 of file CsvDataWrapper.h.

Referenced by foreign_storage::get_value(), and foreign_storage::set_value().

size_t foreign_storage::FileRegion::row_count

Definition at line 44 of file CsvDataWrapper.h.

Referenced by foreign_storage::get_value(), and foreign_storage::set_value().


The documentation for this struct was generated from the following file: