mirror of
https://github.com/vale981/ray
synced 2025-03-10 21:36:39 -04:00
18 lines
373 B
Python
18 lines
373 B
Python
![]() |
class Record:
|
||
|
"""Data record in data stream"""
|
||
|
|
||
|
def __init__(self, value):
|
||
|
self.value = value
|
||
|
self.stream = None
|
||
|
|
||
|
def __repr__(self):
|
||
|
return "Record(%s)".format(self.value)
|
||
|
|
||
|
|
||
|
class KeyRecord(Record):
|
||
|
"""Data record in a keyed data stream"""
|
||
|
|
||
|
def __init__(self, key, value):
|
||
|
super().__init__(value)
|
||
|
self.key = key
|