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

Tables SDK Adding Odata Typing #13605

Closed
wants to merge 7 commits into from
Closed

Conversation

eboyd23
Copy link
Contributor

@eboyd23 eboyd23 commented Jul 29, 2020

Adds to types to the objects in the property map of an entity to allow for serialization and deserialization by the SDK.

@eboyd23 eboyd23 requested a review from conniey July 29, 2020 21:48
* @return A <code>String</code> containing the name of the EDM data type.
*/
@Override
public String toString() {
Copy link
Member

Choose a reason for hiding this comment

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

Usually we don't override toString and use the ability to pass in a value in the ctor. An example. This would have a getValue() method that would return the string constant.

https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/implementation/MessagingEntityType.java#L21

@@ -76,7 +76,7 @@ public TableAsyncClient getTableAsyncClient(String tableName) {
* @param name the name of the table
* @return associated azure table object
*/
public Table getTable(String name) {
public AzureTable getTable(String name) {
return null; //TODO: idk how to do this one
Copy link
Member

Choose a reason for hiding this comment

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

I just saw this TODO


return new PagedFlux<>(
() -> listTablesFirstPage(context, queryParams),
token -> listTablesNextPage(token, context, queryParams));
} //802

private Mono<PagedResponse<Table>> listTablesFirstPage(Context context, QueryParams queryParams) {
private Mono<PagedResponse<AzureTable>> listTablesFirstPage(Context context, TableQueryParams queryParams) {
try {
return listTables(null, context, queryParams);
} catch (RuntimeException e) {
return monoError(logger, e);
}
} //1459
Copy link
Member

Choose a reason for hiding this comment

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

What are these numbers for? //1459 Can we clean these up?

@bsiegel
Copy link
Member

bsiegel commented Aug 28, 2020

Closing in favor of #14597

@bsiegel bsiegel closed this Aug 28, 2020
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