1 /*
2  * Copyright 2019 Google LLC.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     https://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef PRIVATE_JOIN_AND_COMPUTE_UTIL_PROCESS_RECORD_FILE_PARAMETERS_H_
17 #define PRIVATE_JOIN_AND_COMPUTE_UTIL_PROCESS_RECORD_FILE_PARAMETERS_H_
18 
19 #include <cstddef>
20 #include <cstdint>
21 
22 namespace private_join_and_compute::util {
23 
24 // Parameters needed by process_record_file.
25 struct ProcessRecordFileParameters {
26   // The number of threads to use to parallelize the encryption operations.
27   uint32_t thread_count = 8;
28 
29   // The maximum number of values to read in memory and encrypt at once.
30   // Large data files will be encrypted in chunks to avoid running out of
31   // memory.
32   size_t data_chunk_size = 10'000'000;
33 };
34 
35 }  // namespace private_join_and_compute::util
36 
37 #endif  // PRIVATE_JOIN_AND_COMPUTE_UTIL_PROCESS_RECORD_FILE_PARAMETERS_H_
38