Metadata
This class is a placeholder for data reference metadata. It provides methods to check for existence, retrieve size, Etag, and ContentMD5 of the associated data.
Methods
Exists()
@classmethod
def Exists() - > bool
Checks if the data reference metadata exists.
Returns
| Type | Description |
|---|---|
bool | True if the metadata exists, False otherwise. |
Size()
@classmethod
def Size() - > int64
Retrieves the size of the data reference.
Returns
| Type | Description |
|---|---|
int64 | The size of the data reference in bytes. |
Etag()
@classmethod
def Etag() - > string
Retrieves the Etag of the data reference.
Returns
| Type | Description |
|---|---|
string | The Etag (entity tag) of the data reference, used for cache validation. |
ContentMD5()
@classmethod
def ContentMD5() - > string
Retrieves the value of a special metadata tag added by the system that contains the MD5 of the uploaded file. If there is no metadata attached or that FlyteContentMD5 key isn't set, ContentMD5 will return empty.
Returns
| Type | Description |
|---|---|
string | The MD5 hash of the uploaded file, or an empty string if not available. |