Package io.openlineage.client.utils
Class OneLakeLocation
java.lang.Object
io.openlineage.client.utils.OneLakeLocation
What is known about a location in OneLake, Microsoft Fabric's storage, and the
fabric_onelake dataset facet built from it.
OneLake paths have the form
abfss://<workspace>@onelake.dfs.fabric.microsoft.com/<item>/<section>/..., where the section is
Tables or Files. This class reads the form written with IDs,
d1f6473b-...@onelake.dfs.fabric.microsoft.com/c7a14054-.../Tables/sales/orders. Every field is
optional: each producer sets only what it knows locally, without calling Fabric.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanFabric's name for the item's type, such asLakehouseorWarehouse.getPath()Path segments after the item, such as[Tables, sales, orders].ID of the table's Delta metadata (metaData.id).Reads an ID, returning empty instead of failing when the text isn't one.The location written with IDs, asabfss://<workspace ID>@onelake.dfs.fabric.microsoft.com/<item ID>/..., with lowercase IDs and no trailing slash.guidIdentifier()as a single path.inthashCode()static Optional<OneLakeLocation>Reads a OneLake location written with IDs from a dataset's namespace and name, such asabfss://<workspace ID>@onelake.dfs.fabric.microsoft.comand<item ID>/Tables/<table>.toFacet(OpenLineage openLineage) Builds thefabric_onelakefacet from everything known.toString()
-
Field Details
-
HOST
- See Also:
-
WAREHOUSE
- See Also:
-
TABLES
- See Also:
-
-
Method Details
-
parse
Reads a OneLake location written with IDs from a dataset's namespace and name, such asabfss://<workspace ID>@onelake.dfs.fabric.microsoft.comand<item ID>/Tables/<table>.- Returns:
- the location, or empty if this isn't a OneLake path that names an item by ID
-
guid
Reads an ID, returning empty instead of failing when the text isn't one. -
guidIdentifier
The location written with IDs, asabfss://<workspace ID>@onelake.dfs.fabric.microsoft.com/<item ID>/..., with lowercase IDs and no trailing slash.- Returns:
- the location, or empty if either ID isn't known or there's no path after the item, as the item's root isn't a dataset
-
guidLocation
guidIdentifier()as a single path. -
toFacet
Builds thefabric_onelakefacet from everything known. The table ID is written in lowercase, as the spec requires. -
builder
-
toBuilder
-
getWorkspaceId
-
getWorkspaceName
-
getItemId
-
getItemName
-
getItemType
Fabric's name for the item's type, such asLakehouseorWarehouse. -
getPath
Path segments after the item, such as[Tables, sales, orders]. -
getTableId
ID of the table's Delta metadata (metaData.id). -
equals
-
hashCode
public int hashCode() -
toString
-