Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions typedbytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
LIST = 9
MAP = 10

# As defined here:
# https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/typedbytes/Type.java#L40
WRITABLE = 50

# Application-specific types:
PICKLE = 100
BYTESTRING = 101
Expand Down Expand Up @@ -193,6 +197,7 @@ def invalid_typecode(self):
VECTOR: read_vector,
LIST: read_list,
MAP: read_map,
WRITABLE: read_bytes,
PICKLE: read_pickle,
BYTESTRING: read_bytestring,
MARKER: read_marker
Expand Down