-
Notifications
You must be signed in to change notification settings - Fork 972
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
feat(shwap):Add eds streaming #3531
Conversation
ed532f8
to
b11b360
Compare
} | ||
|
||
func WithCloser(a Accessor, c io.Closer) AccessorCloser { | ||
return &accessorCloser{a, c} | ||
func AccessorAndStreamer(a Accessor, s Streamer) AccessorStreamer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we discussed the idiomatic approach, I think you wanted to find iotest
pkg, which has things like TimeoutReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TimeoutReader returns ErrTimeout on the second read with no data. Subsequent calls to read succeed.
Not sure how it is relevant. It does not seem to combine 2 interfaces. Or you reffered different topic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, the pattern is similar to what here
if len(ax.half.Shares) == 0 { | ||
half, err := c.AxisHalf(ctx, axisType, axisIdx) | ||
if err != nil { | ||
return nil, err | ||
} | ||
ax.half = half | ||
half, err := c.AxisHalf(ctx, axisType, axisIdx) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
shares, err := ax.half.Extended() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for this change? I don't follow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It caches half axis independently inside AxisHalf call
Add streaming: read/write for files. Read is implemented only for Rsmt2d file by
ReadFrom
method. There is no usecase so farm to directly read for ods file, soReadFrom
is not added to eds.Accessor interface