Package nzilbb.labbcat.server.db
Class TestOneQuerySearch
- java.lang.Object
-
- nzilbb.labbcat.server.db.TestOneQuerySearch
-
public class TestOneQuerySearch extends Object
-
-
Constructor Summary
Constructors Constructor Description TestOneQuerySearch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalignedSegmentSearch()Ensure segment search with alignment confidence threshold generates the correct SQL, including checking segment confidences.voidalignedWords()Ensure searching aligned words only generates the correct SQL.voidanchorStart()Ensure searches with word-start anchoring generate the correct SQL.nzilbb.ag.SchemagetSchema()Return a plausible schema, including SQL attributes.static voidmain(String[] args)voidmainParticipant()Ensure searching main participant utterances only generates the correct SQL.voidmultiColumnAnchorEnd()Ensure multi-column searches with word-end anchoring generate the correct SQL.voidmultiColumnSearch()Ensure a multi-column search generates the correct SQL.voidmultiWordLayerSearch()Ensure a one-column search with multiple word layers generates the correct SQL.voidnumericSearches()Ensure searches with min and max generate the correct SQL.voidoneColumnAnchorEnd()Ensure one-column searches with word-end anchoring generate the correct SQL.voidoneWordLayerSearch()Ensure a simple word search on a word layer that's not "word" generates the correct SQL.voidoneWordSearch()Ensure the simplest search structure generates the correct SQL.voidoptimisedOrthographySearch()Ensure an orthography-only searches produce optimised SQL.voidoptimisedSpanSearch()Ensure one-target-span-only searches produce optimised SQL.voidrestrictByUser()Ensure setting restrictByUser generates SQL that filters out disallowed utterances.voidsegmentAnchoring()Ensure segment anchoring to word boundaries generates the correct SQL.voidsegmentContextSearch()Ensure intra-word segment context searches generate the correct SQL.voidsegmentSearch()Ensure one-column segment searches (with and without word matching) generate the correct SQL.voidspanMatching()Ensure searches with word-start anchoring generate the correct SQL.voidsubWordOrdering()Ensure targeting aligned word layers generates the correct ORDER BY.voidtranscriptParticipantQueries()Ensure transcript and participant queries are handled.
-
-
-
Method Detail
-
oneWordSearch
public void oneWordSearch() throws ExceptionEnsure the simplest search structure generates the correct SQL.- Throws:
Exception
-
oneWordLayerSearch
public void oneWordLayerSearch() throws ExceptionEnsure a simple word search on a word layer that's not "word" generates the correct SQL.- Throws:
Exception
-
transcriptParticipantQueries
public void transcriptParticipantQueries() throws ExceptionEnsure transcript and participant queries are handled.- Throws:
Exception
-
restrictByUser
public void restrictByUser() throws ExceptionEnsure setting restrictByUser generates SQL that filters out disallowed utterances.- Throws:
Exception
-
optimisedOrthographySearch
public void optimisedOrthographySearch() throws ExceptionEnsure an orthography-only searches produce optimised SQL.- Throws:
Exception
-
optimisedSpanSearch
public void optimisedSpanSearch() throws ExceptionEnsure one-target-span-only searches produce optimised SQL.- Throws:
Exception
-
mainParticipant
public void mainParticipant() throws ExceptionEnsure searching main participant utterances only generates the correct SQL.- Throws:
Exception
-
alignedWords
public void alignedWords() throws ExceptionEnsure searching aligned words only generates the correct SQL.- Throws:
Exception
-
subWordOrdering
public void subWordOrdering() throws ExceptionEnsure targeting aligned word layers generates the correct ORDER BY.- Throws:
Exception
-
multiWordLayerSearch
public void multiWordLayerSearch() throws ExceptionEnsure a one-column search with multiple word layers generates the correct SQL.- Throws:
Exception
-
multiColumnSearch
public void multiColumnSearch() throws ExceptionEnsure a multi-column search generates the correct SQL.- Throws:
Exception
-
numericSearches
public void numericSearches() throws ExceptionEnsure searches with min and max generate the correct SQL.- Throws:
Exception
-
spanMatching
public void spanMatching() throws ExceptionEnsure searches with word-start anchoring generate the correct SQL.- Throws:
Exception
-
anchorStart
public void anchorStart() throws ExceptionEnsure searches with word-start anchoring generate the correct SQL.- Throws:
Exception
-
oneColumnAnchorEnd
public void oneColumnAnchorEnd() throws ExceptionEnsure one-column searches with word-end anchoring generate the correct SQL.- Throws:
Exception
-
multiColumnAnchorEnd
public void multiColumnAnchorEnd() throws ExceptionEnsure multi-column searches with word-end anchoring generate the correct SQL.- Throws:
Exception
-
segmentSearch
public void segmentSearch() throws ExceptionEnsure one-column segment searches (with and without word matching) generate the correct SQL.- Throws:
Exception
-
alignedSegmentSearch
public void alignedSegmentSearch() throws ExceptionEnsure segment search with alignment confidence threshold generates the correct SQL, including checking segment confidences.- Throws:
Exception
-
segmentContextSearch
public void segmentContextSearch() throws ExceptionEnsure intra-word segment context searches generate the correct SQL.- Throws:
Exception
-
segmentAnchoring
public void segmentAnchoring() throws ExceptionEnsure segment anchoring to word boundaries generates the correct SQL.- Throws:
Exception
-
getSchema
public nzilbb.ag.Schema getSchema()
Return a plausible schema, including SQL attributes.- Returns:
- A test schema.
-
main
public static void main(String[] args)
-
-