Generic objects within the Constructor Platform data catalog can store byte strings of any format. They are ideal for storing unformatted data and for testing purposes. If you need to handle specific data types, you can implement your own object type and use it.
To create a Generic Object, you can use the following constructor:
| Python |
RawObject( name: [str] = "Object Name", description: Optional[str] = "Object description", native: bytes = b'XXXXX' ) |
where
To retrieve the contents of the object from the Data Catalog, use the following method:
| Python |
def native(self) -> bytes |
This method returns the contents of the object stored in the Data Catalog as bytes.