Package com.j_spaces.jdbc.builder.range
Class CompositeRange
java.lang.Object
com.gigaspaces.internal.query.AbstractCustomQuery
com.j_spaces.jdbc.builder.range.Range
com.j_spaces.jdbc.builder.range.CompositeRange
- All Implemented Interfaces:
ICustomQuery,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
ContainsCompositeRange
CompositeRange indicates a result of a complex intersection that can't be translated to a single
range. In this case the first range is executed as a query and the remaining ranges used to
filter the irrelevant results.
This is not very efficient but used only in very specific case:
x > 3 and x < 6 and x <> 4
- Author:
- anna
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.jdbc.builder.range.Range
EMPTY_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a range to the composite rangesintersection(EqualValueRange range) intersection(InRange range) intersection(IsNullRange range) intersection(NotEqualValueRange range) intersection(NotNullRange range) intersection(NotRegexRange range) intersection(Range range) intersection(RegexRange range) intersection(RelationRange range) intersection(SegmentRange range) booleanbooleanvoidvoidtoEntryPacket(QueryTemplatePacket e, int index) Convert the range to a single external entry expressiontoSQLQuery(ITypeDesc typeDesc) voidMethods inherited from class com.j_spaces.jdbc.builder.range.Range
chooseRange, evaluatePredicate, getFunction, getFunctionCallDescription, getIndexScanner, getPath, getPredicate, getRightColumnPosition, hasFunctionCallDescription, hasFunctionOnlyOnOneSide, hasSameFunction, intersection, intersection, isEmptyRange, isEqualValueRange, isIndexed, isInternalRange, isNestedQuery, isSegmentRange, isUidsRange, matches, setFunction, setFunctionCallDescription, suitableAsCompoundIndexSegment, twoBuiltInFunctionsMethods inherited from class com.gigaspaces.internal.query.AbstractCustomQuery
addCustomIndex, getCustomIndexes, matchConvertingExceptionHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
CompositeRange
public CompositeRange() -
CompositeRange
-
CompositeRange
-
-
Method Details
-
add
Add a range to the composite ranges -
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
toEntryPacket
Description copied from class:RangeConvert the range to a single external entry expression- Overrides:
toEntryPacketin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
intersection
- Specified by:
intersectionin classRange
-
isComplex
public boolean isComplex() -
isRelevantForAllIndexValuesOptimization
public boolean isRelevantForAllIndexValuesOptimization()- Overrides:
isRelevantForAllIndexValuesOptimizationin classRange
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classRange- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classRange- Throws:
IOException
-
toSQLQuery
- Parameters:
typeDesc- TODO- Returns:
- SQLQuery
-
get_ranges
-