示例#1
0
 def test_cython_time_coder(self):
     import datetime
     data = [
         datetime.time(hour=11, minute=11, second=11, microsecond=123000)
     ]
     python_field_coders = [
         coder_impl.TimeCoderImpl() for _ in range(len(data))
     ]
     cython_field_coders = [
         fast_coder_impl.TimeCoderImpl() for _ in range(len(data))
     ]
     self.check_cython_coder(python_field_coders, cython_field_coders,
                             [data])
示例#2
0
文件: coders.py 项目: wosow/flink
 def _create_impl(self):
     return coder_impl.TimeCoderImpl()