Beispiel #1
0
        /// <summary>
        /// Get the dataset specified by a URI.
        /// </summary>
        /// <typeparam name="T">The record type of the dataset.</typeparam>
        /// <param name="context">An instance of <see cref="DryadLinqContext"/></param>
        /// <param name="dataSetUri">The URI of the dataset</param>
        /// <returns>A query object representing the dsc file set data.</returns>
        internal static DryadLinqQuery <T> GetPartitionedTable <T>(DryadLinqContext context, Uri dataSetUri)
        {
            string            scheme        = DataPath.GetScheme(dataSetUri);
            DataProvider      dataProvider  = DataProvider.GetDataProvider(scheme);
            DryadLinqProvider queryProvider = new DryadLinqProvider(context);

            dataSetUri = dataProvider.RewriteUri <T>(context, dataSetUri);
            return(new DryadLinqQuery <T>(null, queryProvider, dataProvider, dataSetUri));
        }
Beispiel #2
0
        /// <summary>
        /// Get the DSC file set specified by a URI.
        /// </summary>
        /// <typeparam name="T">The record type of the table.</typeparam>
        /// <param name="dscFileSetUri">The URI of a DscFileSet.</param>
        /// <returns>A query object representing the dsc file set data.</returns>


        internal static DryadLinqQuery <T> GetPartitionedTable <T>(HpcLinqContext context, string dscFileSetUri)
        {
            Dictionary <string, string> args = DataPath.GetArguments(dscFileSetUri);

            DataProvider      dataProvider  = new DataProvider();
            DryadLinqProvider queryProvider = new DryadLinqProvider(context);

            return(new DryadLinqQuery <T>(null, queryProvider, dataProvider, dscFileSetUri));
        }