Class AllUtterancesTask

  • All Implemented Interfaces:
    Runnable, nzilbb.util.MonitorableTask

    public class AllUtterancesTask
    extends SearchTask
    A task that identifies all utterances of given participants, making them available as a set of search results.
    Author:
    Robert Fromont robert@fromont.net.nz
    • Constructor Detail

      • AllUtterancesTask

        public AllUtterancesTask()
        Default constructor.
    • Method Detail

      • getParticipantQuery

        public String getParticipantQuery()
        Getter for participantQuery: AGQL query identifying which participants to get all the utterances of.
        Returns:
        AGQL query identifying which participants to get all the utterances of.
      • setParticipantQuery

        public AllUtterancesTask setParticipantQuery​(String newParticipantQuery)
        Setter for participantQuery: AGQL query identifying which participants to get all the utterances of.
        Parameters:
        newParticipantQuery - AGQL query identifying which participants to get all the utterances of.
      • getTranscriptQuery

        public String getTranscriptQuery()
        Getter for transcriptQuery: AGQL query identifying which transcripts to get all the utterances from.
        Returns:
        AGQL query identifying which transcripts to get all the utterances from.
      • setTranscriptQuery

        public AllUtterancesTask setTranscriptQuery​(String newTranscriptQuery)
        Setter for transcriptQuery: AGQL query identifying which transcripts to get all the utterances from.
        Parameters:
        newTranscriptQuery - AGQL query identifying which transcripts to get all the utterances from.
      • validate

        public String validate()
        Override prevents validation from failing because of lack of matrix.
        Overrides:
        validate in class SearchTask
        Returns:
        A message describing a validation error, or null if the conditions are valid
      • keepAlive

        public void keepAlive()
        Somebody is still interested in the thread, so keep it from dying.
        Overrides:
        keepAlive in class Task
      • cancel

        public void cancel()
        Override to allow update-statement cancellation
        Specified by:
        cancel in interface nzilbb.util.MonitorableTask
        Overrides:
        cancel in class Task