Skip to content

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

Merged
merged 2 commits into from
Jan 3, 2019

Conversation

wschin
Copy link
Member

@wschin wschin commented Jan 2, 2019

Continue removing ISchema one-by-one. It's a part of #1501.

1. Remove ISchema interface
2. Rename CompositeSchema to ZipBinding
@wschin wschin self-assigned this Jan 2, 2019
@@ -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;
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -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
Copy link
Contributor

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?

Copy link
Member Author

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>
Copy link
Contributor

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?

Copy link
Member

@sfilipi sfilipi left a comment

Choose a reason for hiding this comment

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

:shipit:

@wschin wschin force-pushed the compositeschema-revise branch from 5d36b83 to f595681 Compare January 3, 2019 18:13
@wschin wschin merged commit 21d64aa into dotnet:master Jan 3, 2019
@wschin wschin deleted the compositeschema-revise branch January 3, 2019 18:37
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants