Package dev.frostlake.metastore.model
Class JoinPolicy
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.JoinPolicy
- All Implemented Interfaces:
Taggable
Snowflake JOIN POLICY — attached to a TABLE, it refuses to let that table be read on its own: the
query must INNER join it to a DIFFERENT table on an equality between their columns. A query with no
join, an outer join, a cross join, a constant join condition or a self join is all refused, each
with its own sentence (live-verified).
The policy takes no arguments and its body answers JOIN_CONSTRAINT(JOIN_REQUIRED => …),
so a body answering FALSE imposes nothing.
-
Field Summary
Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, rename, setComment, setName, setOwner, setTag, toString, unsetTag, withoutTrailingSemicolon
-
Constructor Details
-
JoinPolicy
-
-
Method Details
-
getBody
-
setBody
-
getObjectType
Description copied from class:SqlObjectGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type- Specified by:
getObjectTypein classSqlObject- Returns:
- The object type as a string
-