def setUp(self):
		self.ctx = map_context(None, None)
		self.count_group = "Test"
		self.logger = SavingLogger()
		self.monitor = HadoopEventMonitor(self.count_group, self.logger, self.ctx)
		self.link = MarkDuplicatesEmitter(self.ctx, self.monitor)
		self.pair1 = test_utils.pair1()
		self.pair2 = test_utils.pair2()
示例#2
0
 def setUp(self):
     self.ctx = map_context(None, None)
     self.count_group = "Test"
     self.logger = SavingLogger()
     self.monitor = HadoopEventMonitor(self.count_group, self.logger,
                                       self.ctx)
     self.link = MarkDuplicatesEmitter(self.ctx, self.monitor)
     self.pair1 = test_utils.pair1()
     self.pair2 = test_utils.pair2()
示例#3
0
	def setUp(self):
		self.map_ctx = map_context(None, None)
		self.count_group = "Test"
		self.logger = SavingLogger()
		self.monitor = HadoopEventMonitor(self.count_group, self.logger, self.map_ctx)
		self.emitter = EmitSamLink(self.map_ctx, self.monitor)
		# create two mappings, m1, m2.  We put them in self.pair
		# m1 has:
		#   name = first
		# 	tid = tid1
		# m2 has:
		#   name = second
		#   tid = tid2
		self.pair = [ SimpleMapping(), SimpleMapping() ]
		self.m1, self.m2 = self.pair
		self.m1.set_name("first")
		self.m1.tid = "tid1"
		self.m2.set_name("second")
		self.m2.tid = "tid2"
	def setUp(self):
		self.map_ctx = map_context(None, None)
		self.logger = SavingLogger()
		self.count_group = "Test"
		self.monitor = HadoopEventMonitor(self.count_group, self.logger, self.map_ctx)
 def setUp(self):
     self.map_ctx = map_context(None, None)
     self.logger = SavingLogger()
     self.count_group = "Test"
     self.monitor = HadoopEventMonitor(self.count_group, self.logger,
                                       self.map_ctx)