-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subarray Rework B: FieldDataSize (#4891)
Add `struct FieldDataSize`. There are already two incorrect versions of this within `class Subarray`, one which uses `double` (??!) and one which uses `uint64_t`. The correct type for sizes of objects held within program memory is `size_t`, per the C++ standard. Change return type of `get_max_memory_size` to `FieldDataSize` and remove output arguments. Combine all four `get_max_memory_size*` functions into a single one, thus removing both copypasta and extraneous checks. Change return type of `Subarray::get_est_result_size` to `FieldDataView` and remove output arguments. Combine all four `get_est_result_size*` functions into a single one, thus again removing both copypasta and extraneous checks. Rework the `Query::get_est_result_size_*` functions that directly serve the C API. Rationalize their names. Move validation for `Query::get_est_result_size_*` to separate functions, which yet again removes a large amount of copypasta. Add null pointer checks to C API functions `tiledb_query_est_result_size*`. Previous null checks were not exhaustive and did not happen in the C API implementation function. Fix defect in `ArraySchema::is_field`, which did not consider a dimension label as a field. Removed unused function `get_next_range_coords`. Added another item to `.gitignore` to cope with an increase requirement from AWS for short lengths in the build directory prefix. <long description> --- TYPE: NO_HISTORY DESC: Subarray Rework B: FieldDataSize
- Loading branch information
1 parent
5298c22
commit d1a5f22
Showing
8 changed files
with
327 additions
and
772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.vscode* | ||
*.sw? | ||
build/* | ||
build-*/* | ||
dist/* | ||
cmake-build-*/* | ||
core/bin/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.