Package nzilbb.labbcat.server.task
Class ParseResultsFile
- java.lang.Object
-
- java.lang.Thread
-
- nzilbb.labbcat.server.task.Task
-
- nzilbb.labbcat.server.search.SearchTask
-
- nzilbb.labbcat.server.task.ParseResultsFile
-
- All Implemented Interfaces:
Runnable
,nzilbb.util.MonitorableTask
public class ParseResultsFile extends SearchTask
Task that parses a given search-results CSV file, loading the matches found into the results database table.- 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 ParseResultsFile(File csvFile)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getCsvFieldDelimiter()
Getter forcsvFieldDelimiter
: Field delimiter to use when reading the file.File
getCsvFile()
Getter forcsvFile
: The results file to parse.String
getTargetColumn()
Getter fortargetColumn
: Name of the column that identifies each match (default "MatchId").void
release()
Release resources.ParseResultsFile
setCsvFieldDelimiter(char newCsvFieldDelimiter)
Setter forcsvFieldDelimiter
: Field delimiter to use when reading the file.ParseResultsFile
setTargetColumn(String newTargetColumn)
Setter fortargetColumn
: Name of the column that identifies each match (default "MatchId").String
validate()
Pass validation, this is not a real search.-
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
cancel, defaultThreadName, findTask, findTask, getCreationTime, getDuration, getLastException, getLastKeepAlive, getLog, getMaxLogSize, getPercentComplete, getResources, getResultTarget, getResultText, getResultUrl, getRunning, getStatus, getStore, getStoreCache, getTaskThreadGroup, getWaitToDieMilliseconds, getWho, keepAlive, 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
-
-
-
-
Constructor Detail
-
ParseResultsFile
public ParseResultsFile(File csvFile)
Constructor.- Parameters:
csvFile
- The results file to parse.
-
-
Method Detail
-
getCsvFile
public File getCsvFile()
Getter forcsvFile
: The results file to parse.- Returns:
- The results file to parse.
-
getCsvFieldDelimiter
public char getCsvFieldDelimiter()
Getter forcsvFieldDelimiter
: Field delimiter to use when reading the file.- Returns:
- Field delimiter to use when reading the file.
-
setCsvFieldDelimiter
public ParseResultsFile setCsvFieldDelimiter(char newCsvFieldDelimiter)
Setter forcsvFieldDelimiter
: Field delimiter to use when reading the file.- Parameters:
newCsvFieldDelimiter
- Field delimiter to use when reading the file.
-
getTargetColumn
public String getTargetColumn()
Getter fortargetColumn
: Name of the column that identifies each match (default "MatchId").- Returns:
- Name of the column that identifies each match (default "MatchId").
-
setTargetColumn
public ParseResultsFile setTargetColumn(String newTargetColumn)
Setter fortargetColumn
: Name of the column that identifies each match (default "MatchId").- Parameters:
newTargetColumn
- Name of the column that identifies each match (default "MatchId").
-
validate
public String validate()
Pass validation, this is not a real search.- Overrides:
validate
in classSearchTask
- Returns:
- null.
-
-