mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
17 lines
373 B
Python
17 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
|