Producer-class(Streamer)
Producer-class()所属R语言包:Streamer
Class "Producer"
类“生产者”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A virtual class representing components that can read data from connections, and yield records to the user or a Consumer instance. A Producer represents a source of data, responsible for parsing a file into records to be passed to Consumer classes. Producer and Consumer instances are associated with each other through the stream function or using the connect function.
虚拟类组件,可以从连接中读取数据,并产生记录用户或Consumer实例。一个Producer代表,负责解析记录到一个文件要传递给Consumer类的数据源。 Producer和Consumer实例相互关联,通过stream功能或使用connect功能。
方法----------Methods----------
Methods defined on this class include:
在这个类中定义的方法包括:
stream signature(x = "Producer", ...): see
流signature(x = "Producer", ...):见
show signature(object = "Streamer"): Display the
显示signature(object = "Streamer"):显示
领域----------Fields----------
The Producer class inherits the fields verbose, inUse and yieldSize fields from the Streamer class. Please refer to the Streamer class for more details.
Producer类继承领域verbose,inUse和yieldSizeStreamer类领域。更多详细信息,请参阅Streamer类。
基于类的方法----------Class-Based Methods----------
The Producer class inherits the methods initialize, msg, reset, status and yield from the Streamer virtual class. Please refer to the Streamer class for more details.
Producer类继承的方法initialize,msg,reset,status和yieldStreamer虚拟类。更多详细信息,请参阅Streamer类。
Derived classes should implement an appropriate initialize method to initialize the fields of the derived class. Additionally, a yield method should be implemented to return the contents of the current stream. The default method for the base virtual Streamer class returns a list()
派生类应实施适当的initialize方法来初始化派生类领域。此外,yield方法应实现返回当前流中的内容。为碱基的默认方法虚拟Streamer类返回一个list(),
作者(S)----------Author(s)----------
Martin Morgan <a href="mtmorgan@fhcrc.org">mtmorgan@fhcrc.org</a>
参见----------See Also----------
Streamer-package, Consumer-class, Streamer-class.
Streamer-package,Consumer-class,Streamer-class。
举例----------Examples----------
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|