Class DefaultTaskLister
- java.lang.Object
-
- com.snowflake.connectors.common.task.DefaultTaskLister
-
- All Implemented Interfaces:
TaskLister
public class DefaultTaskLister extends Object implements TaskLister
Default implementation ofTaskLister.
-
-
Constructor Summary
Constructors Constructor Description DefaultTaskLister(Session session)Creates a newDefaultTaskLister.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
DefaultTaskLister
public DefaultTaskLister(Session session)
Creates a newDefaultTaskLister.- Parameters:
session- Snowpark session object
-
-
Method Detail
-
showTask
public Optional<TaskProperties> showTask(ObjectName taskName)
Description copied from interface:TaskListerFetches a task for a given object name.- Specified by:
showTaskin interfaceTaskLister- Parameters:
taskName- object name of the task to fetch- Returns:
- properties of the fetched task
-
showTasks
public List<TaskProperties> showTasks(String schema)
Description copied from interface:TaskListerFetches all tasks which are present in given schema.- Specified by:
showTasksin interfaceTaskLister- Parameters:
schema- structure to be queried to find all existing tasks- Returns:
- List of tasks in schema.
-
showTasks
public List<TaskProperties> showTasks(String schema, String like)
Description copied from interface:TaskListerFetches tasks which are present in given schema and contains given string.- Specified by:
showTasksin interfaceTaskLister- 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.
-
-