OmniSciDB  a5dc49c757
 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 path, 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 file_path
 
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  path,
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  : file_path(path)
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) {}
foreign_storage::FileRegion::FileRegion ( )
inline

Definition at line 53 of file FileRegions.h.

53 {}

Member Function Documentation

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

Definition at line 55 of file FileRegions.h.

References first_row_file_offset.

55  {
56  return first_row_file_offset < other.first_row_file_offset;
57  }

Member Data Documentation

std::string foreign_storage::FileRegion::file_path

Definition at line 31 of file FileRegions.h.

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: