Package dev.frostlake.metastore.model
Class Function
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.Function
- All Implemented Interfaces:
Taggable
-
Field Summary
Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
ConstructorsConstructorDescriptionFunction(String name, List<Parameter> parameters, DataType returnType, String body, boolean isTableFunction) Function(String name, List<Parameter> parameters, DataType returnType, String body, boolean isTableFunction, String language) Function(String name, List<Parameter> parameters, DataType returnType, String body, boolean isTableFunction, String language, String handler, String runtimeVersion) Function(String name, List<Parameter> parameters, DataType returnType, List<Parameter> returnColumns, String body, boolean isTableFunction, String language, String handler, String runtimeVersion) -
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.booleanMEMOIZABLE, which the account reports in SHOW FUNCTIONS and INFORMATION_SCHEMA.FUNCTIONS.booleanisSecure()booleanbooleanA TEMPORARY (TEMP / VOLATILE) function 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 unsupportedvoidsetImports(List<String> imports) voidsetMemoizable(boolean memoizable) voidvoidsetSecure(boolean secure) voidsetTemporary(boolean temporary) voidMethods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, setComment, setName, setOwner, setTag, toString, unsetTag, withoutTrailingSemicolon
-
Constructor Details
-
Function
-
Function
-
Function
-
Function
-
-
Method Details
-
getParameters
-
getReturnColumns
-
getReturnType
-
getBody
-
isTableFunction
public boolean isTableFunction() -
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
-
getNullHandling
-
setNullHandling
-
getVolatility
-
setVolatility
-
isSecure
public boolean isSecure() -
setSecure
public void setSecure(boolean secure) -
isMemoizable
public boolean isMemoizable()MEMOIZABLE, which the account reports in SHOW FUNCTIONS and INFORMATION_SCHEMA.FUNCTIONS. The result is not cached: for a deterministic body a cached and a recomputed result cannot be told apart. -
setMemoizable
public void setMemoizable(boolean memoizable) -
isTemporary
public boolean isTemporary()A TEMPORARY (TEMP / VOLATILE) function 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) -
getImports
-
setImports
-
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
-