Package dev.frostlake.metastore.model
Class Procedure
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.Procedure
- All Implemented Interfaces:
Taggable
-
Field Summary
Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()The declared language as its canonical uppercase name (e.g.Get the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific typeThe declared language as a typedUdfLanguage(for runtime dispatch);UdfLanguage.SQLby default.booleanA TEMPORARY (TEMP / VOLATILE) procedure lives only as long as the session that created it, the same lifetime Frostlake gives a temporary table.voidRename this SQL object Note: Subclasses may override to add validation or mark as unsupportedvoidsetExecuteAs(String executeAs) voidsetImports(List<String> imports) voidsetReturnColumns(List<Parameter> returnColumns) voidsetTemporary(boolean temporary) Methods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, setComment, setName, setOwner, setTag, toString, unsetTag, withoutTrailingSemicolon
-
Constructor Details
-
Procedure
-
Procedure
-
Procedure
-
-
Method Details
-
isTemporary
public boolean isTemporary()A TEMPORARY (TEMP / VOLATILE) procedure lives only as long as the session that created it, the same lifetime Frostlake gives a temporary table. Live also makes it invisible to other sessions and lets it shadow a permanent object of the same name; Frostlake has one namespace per catalog, so it models the lifetime and not the isolation. -
setTemporary
public void setTemporary(boolean temporary) -
getReturnColumns
-
setReturnColumns
-
getParameters
-
getReturnType
-
getBody
-
getLanguage
The declared language as its canonical uppercase name (e.g."PYTHON");"SQL"by default. -
getUdfLanguage
The declared language as a typedUdfLanguage(for runtime dispatch);UdfLanguage.SQLby default. -
getHandler
-
getRuntimeVersion
-
getPackages
-
getImports
-
setImports
-
getExecuteAs
-
setExecuteAs
-
rename
Description copied from class:SqlObjectRename this SQL object Note: Subclasses may override to add validation or mark as unsupported -
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
-