public class DefaultDBOrFunctionSymbol extends AbstractDBBooleanConnectorFunctionSymbol implements DBOrFunctionSymbol
FunctionSymbol.FunctionalTermNullability| Modifier | Constructor and Description |
|---|---|
protected |
DefaultDBOrFunctionSymbol(String nameInDialect,
int arity,
DBTermType dbBooleanTermType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blocksNegation()
Returns TRUE if the NOT operator has to stay ABOVE the expression
(i.e.
|
protected ImmutableTerm |
buildTermAfterEvaluation(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms,
TermFactory termFactory,
VariableNullability variableNullability)
NB: terms are assumed to be either TRUE, FALSE, NULL or ImmutableExpressions.
|
boolean |
canBePostProcessed(com.google.common.collect.ImmutableList<? extends ImmutableTerm> arguments)
1.
|
static ImmutableTerm |
computeNewDisjunction(com.google.common.collect.ImmutableList<ImmutableTerm> evaluatedTerms,
TermFactory termFactory)
Temporarily public
TODO: hide it again
|
String |
getNativeDBString(com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms,
Function<ImmutableTerm,String> termConverter,
TermFactory termFactory)
Returns a String in the native query language.
|
boolean |
isAlwaysInjectiveInTheAbsenceOfNonInjectiveFunctionalTerms()
When the function symbol is, in the absence of non-injective functional sub-terms, sometimes but not always injective,
please override isInjective(...)
|
ImmutableExpression |
negate(com.google.common.collect.ImmutableList<? extends ImmutableTerm> subTerms,
TermFactory termFactory)
Usually NOT supported when the function symbol blocks negation.
|
protected com.google.common.collect.ImmutableList<ImmutableTerm> |
simplify2VLInteractions(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms,
TermFactory termFactory,
VariableNullability variableNullability) |
protected com.google.common.collect.ImmutableList<ImmutableTerm> |
simplifyInteractions(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms,
TermFactory termFactory,
VariableNullability variableNullability)
Look at the interaction between disjuncts
|
simplify2VL, simplifyIsNullOrIsNotNull, tolerateNulls, transformIntoRegularArgumentsinBrackets, isPreferringToBePostProcessedOverBeingBlocked, mayReturnNullWithoutNullArgumentsenableIfElseNullLifting, inferType, tryToLiftIfThenTerm, tryToLiftMagicNumbersanalyzeInjectivity, canBeSafelyDecomposedIntoConjunction, decomposeInjectiveTopFunctionalTerm, evaluateIsNotNull, evaluateNullability, evaluateStrictEq, evaluateStrictEqWithFunctionalTerm, evaluateStrictEqWithNonNullConstant, getExpectedBaseType, getExpectedBaseTypes, isAggregation, isDeterministic, isInjective, isNullable, proposeProvenanceVariables, simplify, simplifyAsGuaranteedToBeNonNull, tryToLiftMagicNumbersclone, equals, getArity, getName, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitsimplify2VLisPreferringToBePostProcessedOverBeingBlockedanalyzeInjectivity, evaluateIsNotNull, evaluateNullability, evaluateStrictEq, getExpectedBaseType, inferType, isAggregation, isDeterministic, isNullable, proposeProvenanceVariables, simplify, simplifyAsGuaranteedToBeNonNullprotected DefaultDBOrFunctionSymbol(String nameInDialect, int arity, DBTermType dbBooleanTermType)
protected com.google.common.collect.ImmutableList<ImmutableTerm> simplify2VLInteractions(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms, TermFactory termFactory, VariableNullability variableNullability)
simplify2VLInteractions in class AbstractDBBooleanConnectorFunctionSymbolpublic boolean isAlwaysInjectiveInTheAbsenceOfNonInjectiveFunctionalTerms()
FunctionSymbolImplisAlwaysInjectiveInTheAbsenceOfNonInjectiveFunctionalTerms in class FunctionSymbolImplpublic boolean canBePostProcessed(com.google.common.collect.ImmutableList<? extends ImmutableTerm> arguments)
FunctionSymbolcanBePostProcessed in interface FunctionSymbolprotected ImmutableTerm buildTermAfterEvaluation(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms, TermFactory termFactory, VariableNullability variableNullability)
buildTermAfterEvaluation in class BooleanFunctionSymbolImplpublic static ImmutableTerm computeNewDisjunction(com.google.common.collect.ImmutableList<ImmutableTerm> evaluatedTerms, TermFactory termFactory)
protected com.google.common.collect.ImmutableList<ImmutableTerm> simplifyInteractions(com.google.common.collect.ImmutableList<ImmutableTerm> newTerms, TermFactory termFactory, VariableNullability variableNullability)
public String getNativeDBString(com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
DBFunctionSymbolSerializergetNativeDBString in interface DBFunctionSymbolSerializerpublic boolean blocksNegation()
BooleanFunctionSymbolblocksNegation in interface BooleanFunctionSymbolpublic ImmutableExpression negate(com.google.common.collect.ImmutableList<? extends ImmutableTerm> subTerms, TermFactory termFactory)
BooleanFunctionSymbolnegate in interface BooleanFunctionSymbolCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.