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

#include <CsvShared.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 (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 33 of file CsvShared.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 46 of file CsvShared.h.

51  : filename(name)
52  , first_row_file_offset(first_row_offset)
53  , first_row_index(first_row_idx)
54  , row_count(row_cnt)
55  , region_size(region_sz) {}
string name
Definition: setup.in.py:62
foreign_storage::FileRegion::FileRegion ( size_t  first_row_offset,
size_t  first_row_idx,
size_t  row_cnt,
size_t  region_sz 
)
inline

Definition at line 57 of file CsvShared.h.

61  : first_row_file_offset(first_row_offset)
62  , first_row_index(first_row_idx)
63  , row_count(row_cnt)
64  , region_size(region_sz) {}
foreign_storage::FileRegion::FileRegion ( )
inline

Definition at line 65 of file CsvShared.h.

65 {}

Member Function Documentation

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

Definition at line 66 of file CsvShared.h.

References first_row_file_offset.

66  {
67  return first_row_file_offset < other.first_row_file_offset;
68  }

Member Data Documentation

std::string foreign_storage::FileRegion::filename

Definition at line 35 of file CsvShared.h.

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

size_t foreign_storage::FileRegion::first_row_file_offset

Definition at line 37 of file CsvShared.h.

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

size_t foreign_storage::FileRegion::first_row_index

Definition at line 40 of file CsvShared.h.

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

size_t foreign_storage::FileRegion::region_size

Definition at line 44 of file CsvShared.h.

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

size_t foreign_storage::FileRegion::row_count

Definition at line 42 of file CsvShared.h.

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


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