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
| Name | Type | Description |
|---|---|---|
| path | storage.DataReference | The data reference (URI) to the blob's location in storage. |
| isDir | bool | A boolean flag indicating whether the blob represents a directory (true) or a single file (false). |
| format | string | The format of the blob data (e.g., "csv", "parquet"). This metadata is stored within the blob's literal representation. |
Returns
| Type | Description |
|---|---|
*core.Literal | A pointer to a core.Literal object configured to represent the blob. |