-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/EdmType.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/EdmType.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/EdmType.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/EdmType.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/ODataConstants.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/ODataConstants.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java
Outdated
Show resolved
Hide resolved
sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableClient.java
Show resolved
Hide resolved
* @return A <code>String</code> containing the name of the EDM data type. | ||
*/ | ||
@Override | ||
public String toString() { |
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.
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.
@@ -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 |
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 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 |
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 are these numbers for? //1459
Can we clean these up?
Closing in favor of #14597 |
Adds to types to the objects in the property map of an entity to allow for serialization and deserialization by the SDK.