mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
implement ObjectID.from_random
This commit is contained in:
1 parent
c0449543dc
commit
36f67d6d9d
1 file changed
+6
@@ -159,6 +159,12 @@ cdef class ObjectID:
|
||||
"""
|
||||
return self.data.binary()
|
||||
|
||||
@staticmethod
|
||||
def from_random():
|
||||
cdef ObjectID result
|
||||
result.data = CUniqueID.from_random()
|
||||
return result
|
||||
|
||||
|
||||
cdef class ObjectNotAvailable:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user