Skip to main content

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

TypeDescription
boolTrue if the metadata exists, False otherwise.

Size()

@classmethod
def Size() - > int64

Retrieves the size of the data reference.

Returns

TypeDescription
int64The size of the data reference in bytes.

Etag()

@classmethod
def Etag() - > string

Retrieves the Etag of the data reference.

Returns

TypeDescription
stringThe 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

TypeDescription
stringThe MD5 hash of the uploaded file, or an empty string if not available.