Class DefaultTaskLister

    • Constructor Detail

      • DefaultTaskLister

        public DefaultTaskLister​(Session session)
        Creates a new DefaultTaskLister.
        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 interface TaskLister
        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 interface TaskLister
        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 interface TaskLister
        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.