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:TaskLister
Fetches a task for a given object name.- Specified by:
showTask
in 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:TaskLister
Fetches all tasks which are present in given schema.- Specified by:
showTasks
in 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:TaskLister
Fetches tasks which are present in given schema and contains given string.- Specified by:
showTasks
in 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.
-
-