发明名称 Transformational context-aware data source management
摘要 Porting between local, cluster, and cloud execution is aided by using the same source code for multiple data sources. A data source identifier recited in source code maps to data sources at different execution targets. Executable codes tailored to successive targets are produced using a resolution API without changing the developer's source code. An editable data source mapping is per-project, maintained in a file or project property, and placed in a distributable software package with executable code. Burdens on developers to determine execution targets in their source code and explicitly handle different execution locations in the source code are reduced. Source code can be freed of absolute path data source identifiers or code for detecting execution location. Source-to-source translation injects calls to create a folder, file, or cloud container. Data source resolution can be based on a relative path rooted at the data source identifier.
申请公布号 US8863082(B2) 申请公布日期 2014.10.14
申请号 US201113226679 申请日期 2011.09.07
申请人 Microsoft Corporation 发明人 Tsao Anson An-Chun;Cao Yang;Zhang Pusheng
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 代理人 Sullivan Kevin;Drakos Kate;Minhas Micky
主权项 1. A process for cooperatively managing a source code and multiple alternative computational data sources, the process comprising the steps of: obtaining a data source mapping in which a particular data source identifier is mapped to a plurality of data sources at respective execution targets; receiving a developer source code which recites the data source identifier as a data source; identifying a first execution target; automatically producing from the developer source code a first executable code which upon execution in the first execution target will operate with the first execution target's mapped data source as the data source identified by the data source identifier; identifying a second execution target having a different data source than the first execution target; and automatically producing from the same source code a second executable code which upon execution in the second execution target will operate with the second execution target's mapped data source as the identified data source instead of the first execution target's data source.
地址 Redmond WA US