Beispiel #1
0
 def init(self, init_req):
     response = udf_pb2.Response()
     response.init.success = True
     return response
Beispiel #2
0
 def info(self):
     response = udf_pb2.Response()
     response.info.wants = udf_pb2.STREAM
     response.info.provides = udf_pb2.STREAM
     response.info.options['field'].valueTypes.append(udf_pb2.DOUBLE)
     return response
Beispiel #3
0
 def restore(self, restore_req):
     response = udf_pb2.Response()
     response.restore.success = False
     response.restore.error = 'not implemented'
     return response
Beispiel #4
0
 def snapshot(self):
     response = udf_pb2.Response()
     response.snapshot.snapshot = bytes()
     return response
Beispiel #5
0
 def restore(self, restore_req):
     logger.info("UDF - restore")
     response = udf_pb2.Response()
     response.restore.success = False
     response.restore.error = 'not implemented'
     return response
Beispiel #6
0
 def snapshot(self):
     logger.info("UDF - snapshot")
     response = udf_pb2.Response()
     response.snapshot.snapshot = b''
     logger.info("UDF - snapshot done.")
     return response