Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge FastFieldCodecReader wit FastFieldDataAccess #1485

Merged
merged 4 commits into from
Aug 27, 2022
Merged

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Aug 26, 2022

  • num_vals to FastFieldCodecReader
  • split open_from_bytes to own trait
  • rename get_u64 to get_val
  • merge FastFieldCodecReader and FastFieldDataAccess traits

@codecov-commenter
Copy link

Codecov Report

Merging #1485 (50bbec9) into main (17093e8) will decrease coverage by 0.01%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##             main    #1485      +/-   ##
==========================================
- Coverage   94.09%   94.07%   -0.02%     
==========================================
  Files         239      239              
  Lines       44833    44863      +30     
==========================================
+ Hits        42184    42207      +23     
- Misses       2649     2656       +7     
Impacted Files Coverage Δ
src/fastfield/writer.rs 91.18% <ø> (ø)
src/fastfield/gcd.rs 98.82% <66.66%> (-1.18%) ⬇️
fastfield_codecs/src/lib.rs 95.62% <76.92%> (-1.49%) ⬇️
fastfield_codecs/src/bitpacked.rs 100.00% <100.00%> (ø)
fastfield_codecs/src/blockwise_linear.rs 100.00% <100.00%> (ø)
fastfield_codecs/src/linear.rs 99.57% <100.00%> (+<0.01%) ⬆️
src/fastfield/mod.rs 94.76% <100.00%> (ø)
src/fastfield/reader.rs 87.82% <100.00%> (-0.65%) ⬇️
src/fastfield/serializer/mod.rs 88.60% <100.00%> (ø)
src/indexer/merger.rs 98.94% <100.00%> (ø)
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@PSeitz PSeitz force-pushed the merge_traits branch 2 times, most recently from 9bd61c1 to 291232b Compare August 26, 2022 08:44
@PSeitz PSeitz changed the title merge fastfield traits merge FastFieldCodecReader wit FastFieldDataAccess Aug 26, 2022
@PSeitz PSeitz requested a review from fulmicoton August 26, 2022 14:25
}

impl FastFieldCodecReader for BitpackedReader {
impl FastFieldCodecDeserializer for BitpackedReader {
Copy link
Collaborator

@fulmicoton fulmicoton Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put that in the XXXXSerializers and rename the trait XXXXCodec, and add an associated trait over the reader.

The XXXXSerializer and the XXXXDeserializer are not really independent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think don't fully understand. I split the Deserializer from the FastFieldDataAccess, because e.g. in the merge case we provide access without deserializing.

@fulmicoton fulmicoton merged commit 0dd6216 into main Aug 27, 2022
@fulmicoton fulmicoton deleted the merge_traits branch August 27, 2022 18:58
This was referenced Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants