Interface TaskLister

  • All Known Implementing Classes:
    DefaultTaskLister

    public interface TaskLister
    A simple utility for listing task properties.
    • 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 tasks
        like - 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 for TaskLister.
        Parameters:
        session - Snowpark session object
        Returns:
        TaskLister instance