Package nzilbb.labbcat.server.db
Class AllUtterancesTask
- java.lang.Object
-
- java.lang.Thread
-
- nzilbb.labbcat.server.task.Task
-
- nzilbb.labbcat.server.search.SearchTask
-
- nzilbb.labbcat.server.db.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AllUtterancesTask()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Override to allow update-statement cancellationString
getParticipantQuery()
Getter forparticipantQuery
: AGQL query identifying which participants to get all the utterances of.String
getTranscriptQuery()
Getter fortranscriptQuery
: AGQL query identifying which transcripts to get all the utterances from.void
keepAlive()
Somebody is still interested in the thread, so keep it from dying.AllUtterancesTask
setParticipantQuery(String newParticipantQuery)
Setter forparticipantQuery
: AGQL query identifying which participants to get all the utterances of.AllUtterancesTask
setTranscriptQuery(String newTranscriptQuery)
Setter fortranscriptQuery
: AGQL query identifying which transcripts to get all the utterances from.String
validate()
Override prevents validation from failing because of lack of matrix.-
Methods inherited from class nzilbb.labbcat.server.search.SearchTask
getAnchorConfidenceThreshold, getDescription, getMainParticipantOnly, getMatchesPerTranscript, getMatrix, getMaxMatches, getOverlapThreshold, getRestrictByUser, getResults, getSuppressResults, getWordsContext, run, setAnchorConfidenceThreshold, setDescription, setMainParticipantOnly, setMatchesPerTranscript, setMatrix, setMaxMatches, setOverlapThreshold, setRestrictByUser, setResults, setSuppressResults, setWordsContext
-
Methods inherited from class nzilbb.labbcat.server.task.Task
defaultThreadName, findTask, findTask, getCreationTime, getDuration, getLastException, getLastKeepAlive, getLog, getMaxLogSize, getPercentComplete, getResources, getResultTarget, getResultText, getResultUrl, getRunning, getStatus, getStore, getStoreCache, getTaskThreadGroup, getWaitToDieMilliseconds, getWho, release, setLastException, setLastKeepAlive, setMaxLogSize, setResources, setResultTarget, setResultText, setResultUrl, setStatus, setStore, setStoreCache, setWaitToDieMilliseconds, setWho, waitToDie, waitToDie
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
getParticipantQuery
public String getParticipantQuery()
Getter forparticipantQuery
: 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 forparticipantQuery
: 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 fortranscriptQuery
: 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 fortranscriptQuery
: 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 classSearchTask
- 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.
-
-