public class ToDerivation extends Transformation implements java.lang.Cloneable
History:
NO_MUTATE_INFO, UPDATE| Constructor and Description |
|---|
ToDerivation() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Vector<LexItem> |
GetDerivations(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
int derivationType,
int derivationNegation,
java.lang.String infoStr,
boolean detailsFlag,
boolean mutateFlag)
Get the derivational variants using both facts (database) and rules
(trie).
|
static void |
main(java.lang.String[] args)
A unit test driver for this flow component.
|
static java.util.Vector<LexItem> |
Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component.
|
static java.util.Vector<LexItem> |
Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
int derivationType,
int derivationNegation,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component.
|
GetTestStr, PrintResult, PrintResults, UpdateLexItem, UpdateLexItem, UpdateLexItempublic static java.util.Vector<LexItem> Mutate(LexItem in, java.sql.Connection conn, RamTrie trie, int restrictFlag, int derivationType, int derivationNegation, boolean detailsFlag, boolean mutateFlag)
in - a LexItem as the input for this flow componentconn - LVG database connectiontrie - LVG persistent trierestrictFlag - a numberical flag to restrict out into LVG_ONLY
LVG_OR_ALL, or ALL (defined in LvgFlowSpecificOption).derivationType - a numberical flag to restrict derivation type
D_TYPE_ZERO, D_TYPE_PREFIX, D_TYPE_SUFFIX, D_TYPE_ZERO_PREFIX,
D_TYPE_ZERO_SUFFIX, D_TYPE_PREFIX_SUFFIX, D_TYPE_ALL (defined in
LvgFlowSpecificOption);derivationNegation - a numberical flag to restrict derivation
negation D_NEGATION_OTHERWISE, D_NEGATION_NEGATIVE, D_NEGATION_BOTHdetailsFlag - a boolean flag for processing details informationmutateFlag - a boolean flag for processing mutate informationDbBase,
LvgFlowSpecificOptionpublic static java.util.Vector<LexItem> Mutate(LexItem in, java.sql.Connection conn, RamTrie trie, int restrictFlag, boolean detailsFlag, boolean mutateFlag)
in - a LexItem as the input for this flow componentconn - LVG database connectiontrie - LVG persistent trierestrictFlag - a numberical flag to restrict out into LVG_ONLY
LVG_OR_ALL, or ALL (defined in LvgFlowSpecificOption).detailsFlag - a boolean flag for processing details informationmutateFlag - a boolean flag for processing mutate informationDbBase,
LvgFlowSpecificOptionpublic static void main(java.lang.String[] args)
args - argumentsprotected static java.util.Vector<LexItem> GetDerivations(LexItem in, java.sql.Connection conn, RamTrie trie, int restrictFlag, int derivationType, int derivationNegation, java.lang.String infoStr, boolean detailsFlag, boolean mutateFlag)
in - a LexItem as the input for this flow componentconn - LVG database connectiontrie - LVG persistent trierestrictFlag - a numberical flag to restrict out into LVG_ONLY
LVG_OR_ALL, or ALL (defined in LvgFlowSpecificOption).derivationType - P|S|Z for prefixD, suffixD, and zeroDderivationNegation - N|O for negative and otherwiseinfoStr - the header of detail information, usually is the
full name of the current flowdetailsFlag - a boolean flag for processing details informationmutateFlag - a boolean flag for processing mutate informationDbBase,
LvgFlowSpecificOption