Class CustomWrapperConditionHolder
java.lang.Object
com.denodo.vdb.engine.customwrapper.condition.CustomWrapperConditionHolder
Encapsulates a
CustomWrapperCondition and its representation as a
Map<CustomWrapperFieldExpression, Object>. This is a simplified version
of the condition defined by the CustomWrapperCondition instance, available
to the users for convenience. For a CustomWrapperCondition to be available as
a Map, it must comply with the following requirements:
- The
CustomWrapperConditionis either a simple condition or an AND condition which encapsulates either simple conditions or AND conditions. - Any simple condition encapsulated by the
CustomWrapperConditionmust comply with this pattern: FIELD = value.
getConditionMap(boolean) (with true as a parameter)
to obtain a Map even if the CustomWrapperCondition does not comply
with the explained requirements. Note that, in this case, information loss may occur.-
Constructor Summary
ConstructorsConstructorDescriptionCustomWrapperConditionHolder(CustomWrapperCondition complexCondition) Creates an instance ofCustomWrapperConditionHolderencapsulating a condition and generates itsMap<CustomWrapperFieldExpression, Object>version. -
Method Summary
-
Constructor Details
-
CustomWrapperConditionHolder
Creates an instance ofCustomWrapperConditionHolderencapsulating a condition and generates itsMap<CustomWrapperFieldExpression, Object>version.Users do not need to instantiate this class.
- Parameters:
complexCondition- the encapsulated condition
-
-
Method Details
-
getComplexCondition
- Returns:
- the encapsulated
CustomWrapperCondition.
-
getConditionMap
- Returns:
- the
Mapversion of the encapsulatedCustomWrapperCondition, ornullif the condition does not comply with the requirements (seeCustomWrapperConditionHolder).
-
getConditionMap
- Parameters:
force-trueif the conversion is going to be forced,falseotherwise. Note that if this parameter istrue, the returnedMapmay not be equivalent to the encapsulatedCustomWrapperCondition.- Returns:
- the
Mapversion of the encapsulatedCustomWrapperCondition, ornullif the condition does not comply with the requirements (seeCustomWrapperConditionHolder), unlessforceis set totrue.
-