Пример #1
0
 def _configure(self, input_file, output_file, port):
     self._connection = Connection.BufferingTCPMappedFileConnection(
         input_file, output_file, port)
     self._iterator = Iterator.Iterator(self._connection)
     self.context = RuntimeContext.RuntimeContext(self._iterator,
                                                  self._collector)
     self._configure_chain(Collector.Collector(self._connection))
Пример #2
0
 def _configure(self, input_file, output_file, port, env, info, task_id):
     self._connection = Connection.BufferingTCPMappedFileConnection(input_file, output_file, port)
     self._iterator = Iterator.Iterator(self._connection, env)
     self._collector = Collector.Collector(self._connection, env, info)
     self.context = RuntimeContext.RuntimeContext(self._iterator, self._collector, task_id)
     self._env = env
     if info.chained_info is not None:
         info.chained_info.operator._configure_chain(self.context, self._collector, info.chained_info)
         self._collector = info.chained_info.operator
Пример #3
0
 def _configure(self, input_file, output_file, port):
     if self._combine:
         self._connection = Connection.BufferingTCPMappedFileConnection(
             input_file, output_file, port)
         self._iterator = Iterator.Iterator(self._connection)
         self._collector = Collector.Collector(self._connection)
         self.context = RuntimeContext.RuntimeContext(
             self._iterator, self._collector)
         self._run = self._run_combine
     else:
         self._connection = Connection.BufferingTCPMappedFileConnection(
             input_file, output_file, port)
         self._iterator = Iterator.Iterator(self._connection)
         self._group_iterator = Iterator.GroupIterator(
             self._iterator, self._keys)
         self.context = RuntimeContext.RuntimeContext(
             self._iterator, self._collector)
         self._configure_chain(Collector.Collector(self._connection))
     self._open()