public final class Endpoint extends Object
Endpoint (lineage2-contract.md §4.1).
Physical endpoints are always emitted fully expanded
(database/schema/object all non-empty, D-15);
endpoints that cannot be fully qualified get a non-RESOLVED
ResolutionStatus and the surface name observed.
Location emission is tri-state, mirroring the gold-fixture
conventions: a non-null sourceLocation is emitted as-is; a null
location with a LocationNullReason is emitted as
"sourceLocation": null plus the reason; when both are absent the
keys are omitted entirely.
Internal API: not part of the public gsqlparser surface.
| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Endpoint.Builder |
builder(String object) |
String |
getColumn() |
String |
getDatabase() |
Integer |
getDefinedAtStatementIndex()
Nullable — only set for temp/variable/cursor endpoints (D-11).
|
LocationNullReason |
getLocationNullReason()
Nullable — set only when
sourceLocation is null. |
String |
getObject() |
ObjectKind |
getObjectKind() |
ResolutionStatus |
getResolutionStatus() |
String |
getSchema() |
ScopeKind |
getScopeKind()
Nullable — only set for temp/variable/cursor endpoints (D-11).
|
SourceLocation |
getSourceLocation()
Nullable.
|
public static Endpoint.Builder builder(String object)
public String getDatabase()
public ObjectKind getObjectKind()
public ResolutionStatus getResolutionStatus()
public ScopeKind getScopeKind()
public Integer getDefinedAtStatementIndex()
public SourceLocation getSourceLocation()
public LocationNullReason getLocationNullReason()
sourceLocation is null.