Skip to content

Commit

Permalink
ops
Browse files Browse the repository at this point in the history
  • Loading branch information
azimafroozeh committed Sep 12, 2024
1 parent fcf5dbc commit b7ce420
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions example/cpp_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@

using namespace fastlanes; // NOLINT
int main() {
Connection con;
const path fastlanes_repo_data_path {CMAKE_SOURCE_DIR};
const path arade_dir_path = fastlanes_repo_data_path / string(public_bi::Arade);
const path example_1_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_1);
const path example_2_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_2);
const path fls_dir_path = fastlanes_repo_data_path / "data" / "fls";

{
// example 1: single column encoding from memory:
Expand All @@ -36,12 +30,15 @@ int main() {
for (size_t i = 0; i < N_TUP; ++i) {
if (output_arr[i] != input_arr[i]) { throw std::runtime_error("decoding failed"); }
}

std::cout << encoded_bsz << "\n";

exit(EXIT_SUCCESS);
}
{
const path fastlanes_repo_data_path {CMAKE_SOURCE_DIR};
const path arade_dir_path = fastlanes_repo_data_path / string(public_bi::Arade);
const path example_1_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_1);
const path example_2_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_2);
const path fls_dir_path = fastlanes_repo_data_path / "data" / "fls";
Connection con;

// Example 2: [WIP] Process a CSV file
// Step 1: Reset the connection and read the CSV file from the specified directory path
con.reset().read(example_2_dir_path);
Expand Down

0 comments on commit b7ce420

Please sign in to comment.