Skip to main content

MakeLiteralForBlob

Builds a core.Literal object representing a blob, specifying its URI, dimensionality (single or multipart), and format based on the provided path, directory status, and format string.

def MakeLiteralForBlob(
path: storage.DataReference,
isDir: bool,
format: string
) - > *core.Literal

Constructs a core.Literal object representing a blob, which can be either a single file or a directory, with specified format metadata. This function is used to create a literal representation of data stored as a blob for use within the system.

Parameters

NameTypeDescription
pathstorage.DataReferenceThe data reference (URI) to the blob's location in storage.
isDirboolA boolean flag indicating whether the blob represents a directory (true) or a single file (false). This determines the dimensionality of the blob type.
formatstringThe format of the blob data (e.g., "csv", "parquet", "json"). This metadata is stored within the blob's type information.

Returns

TypeDescription
*core.LiteralA pointer to a core.Literal object configured to represent the specified blob.