且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关于DSC文件集的两个问题

更新时间:2023-02-25 18:13:33

您好,

1)如果您需要将本地磁盘文件映射到DSC中的记录(而不是文件),您可以使用FileRecord类型并使用它来创建包含文件的二进制数据的记录和包含原始文件路径的字符串。 DupPic2示例
向您显示了如何执行此操作。

1) If you need to map local disk files to records (not files) in DSC you can do this with the FileRecord type and use that to create records containing the file's binary data and a string with the original file's path in it. The DupPic2 sample shows you exactly how to do this.

请注意,对于性能,您通常需要创建包含具有大量记录的文件的DSC文件集。 FileRecord方法允许你这样做。

Note that for performance you typically want to create DSC file sets containing files with lots of records. The FileRecord approach allows you to do this.

2)我想我不明白你为什么要这样做。通常,Dryad不需要了解运行查询的基础文件集中的文件。文件用于控制节点上工作的分区级别,但
查询操作记录而不是文件。

2) I guess I don't understand why yoou would want to do this. Typically Dryad abstracts away the need to know about the files in the underlying file set that the query runs on. Files are used to control the level of partitioning of work on nodes but queries operate on records not files.

也许如果你能解释你想要做什么我可能是更具体。

Perhaps if you could explain what you are trying to do I could be more specific.

Ade