Interface TaskLister
-
- All Known Implementing Classes:
DefaultTaskLister
public interface TaskListerA simple utility for listing task properties.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TaskListergetInstance(Session session)Returns a new instance of the default implementation forTaskLister.Optional<TaskProperties>showTask(ObjectName taskName)Fetches a task for a given object name.List<TaskProperties>showTasks(String schema)Fetches all tasks which are present in given schema.List<TaskProperties>showTasks(String schema, String like)Fetches tasks which are present in given schema and contains given string.
-
-
-
Method Detail
-
showTask
Optional<TaskProperties> showTask(ObjectName taskName)
Fetches a task for a given object name.- Parameters:
taskName- object name of the task to fetch- Returns:
- properties of the fetched task
-
showTasks
List<TaskProperties> showTasks(String schema)
Fetches all tasks which are present in given schema.- Parameters:
schema- structure to be queried to find all existing tasks- Returns:
- List of tasks in schema.
-
showTasks
List<TaskProperties> showTasks(String schema, String like)
Fetches tasks which are present in given schema and contains given string.- Parameters:
schema- structure to be queried to find all existing taskslike- string representing expression to compare to task names- Returns:
- List of tasks in schema containing like statement.
-
getInstance
static TaskLister getInstance(Session session)
Returns a new instance of the default implementation forTaskLister.- Parameters:
session- Snowpark session object- Returns:
TaskListerinstance
-
-