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

#include <FileRegions.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 29 of file FileRegions.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 42 of file FileRegions.h.

47  : filename(name)
48  , first_row_file_offset(first_row_offset)
49  , first_row_index(first_row_idx)
50  , row_count(row_cnt)
51  , region_size(region_sz) {}
string name
Definition: setup.in.py:72
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 53 of file FileRegions.h.

57  : first_row_file_offset(first_row_offset)
58  , first_row_index(first_row_idx)
59  , row_count(row_cnt)
60  , region_size(region_sz) {}
foreign_storage::FileRegion::FileRegion ( )
inline

Definition at line 61 of file FileRegions.h.

61 {}

Member Function Documentation

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

Definition at line 62 of file FileRegions.h.

References first_row_file_offset.

62  {
63  return first_row_file_offset < other.first_row_file_offset;
64  }

Member Data Documentation

std::string foreign_storage::FileRegion::filename

Definition at line 31 of file FileRegions.h.

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

size_t foreign_storage::FileRegion::first_row_file_offset

Definition at line 33 of file FileRegions.h.

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

size_t foreign_storage::FileRegion::first_row_index

Definition at line 36 of file FileRegions.h.

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

size_t foreign_storage::FileRegion::region_size

Definition at line 40 of file FileRegions.h.

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

size_t foreign_storage::FileRegion::row_count

Definition at line 38 of file FileRegions.h.

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


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