处理多个文件集 [英] handle with more than one fileset

查看:54
本文介绍了处理多个文件集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能为一个运营商同时分配多个文件集名称吗?

Am i able to assign more than one fileset name at the same time for one operator?

例如,运营商是P,在DSC上处理两个文件集。如何&NBSP;我应该写p的输入像context.FromDSC< LineRecord>(的FilesetName);其中所述的FilesetName包含两个文件集,所以这两个文件集可以是&NBSP;同时处理

For example,the operator is P,deals with two filesets on DSC.How should i write the input of P?Like context.FromDSC<LineRecord>(filesetname);where the filesetname contains two filesets,so the two filesets can be handled at the same time.

谢谢。

推荐答案

加入示例向您展示如何使用多个文件集作为 查询的输入。您可以使用Union运算符组合文件集并将结果提供给后续查询:

The join example shows you how to use multiple file sets as  the input to a query. You can use the Union operator to combine the filesets and feed the result into a subsequent query:

context.FromDsc< LineRecord>("数据A")

&NBSP;&NBSP;&NBSP;&NBSP; .Union(context.FromDsc< LineRecord>("数据B"),&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;


         new MyComparer())。ToDsc(" Data A and B")

     //查询的其余部分选择...等...

比较器定义为:

     [Serializable]

     public class MyComparer:IEqualityComparer< LineRecord>

     {

         public bool Equals(LineRecord x,LineRecord y)

         {

            返回false;

        }



          public int GetHashCode(LineRecord obj)

         {

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;返回obj.GetHashCode();

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;  }

    }


这篇关于处理多个文件集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆