-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Make CompositeSchema not an ISchema #2001
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
Conversation
1. Remove ISchema interface 2. Rename CompositeSchema to ZipBinding
@@ -106,7 +106,7 @@ public RowCursor[] GetRowCursorSet(Func<int, bool> predicate, int n, Random rand | |||
private sealed class Cursor : RootCursorBase | |||
{ | |||
private readonly RowCursor[] _cursors; | |||
private readonly CompositeSchema _compositeSchema; | |||
private readonly ZipBinding _compositeSchema; |
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.
_compositeSchema [](start = 40, length = 16)
can you change name of variable?
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.
Sure.
@@ -13,16 +13,16 @@ namespace Microsoft.ML.Data | |||
/// A convenience class for concatenating several schemas together. | |||
/// This would be necessary when combining IDataViews through any type of combining operation, for example, zip. | |||
/// </summary> | |||
internal sealed class CompositeSchema : ISchema | |||
internal sealed class ZipBinding |
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.
Shall we rename file as well?
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.
Done.
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.
@@ -13,16 +13,16 @@ namespace Microsoft.ML.Data | |||
/// A convenience class for concatenating several schemas together. | |||
/// This would be necessary when combining IDataViews through any type of combining operation, for example, zip. | |||
/// </summary> | |||
internal sealed class CompositeSchema : ISchema | |||
internal sealed class ZipBinding |
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.
ZipBinding [](start = 26, length = 10)
Why is it called ZipBinding?
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's not a Schema. It takes several input schemas and produce an output schema.
@@ -13,16 +13,16 @@ namespace Microsoft.ML.Data | |||
/// A convenience class for concatenating several schemas together. | |||
/// This would be necessary when combining IDataViews through any type of combining operation, for example, zip. | |||
/// </summary> |
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.
Maybe we need to change this comment, as it seems to be suggesting that zip is not the only use?
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.
5d36b83
to
f595681
Compare
Continue removing ISchema one-by-one. It's a part of #1501.