Package com.j_spaces.jdbc.builder.range
Class ContainsValueRange
java.lang.Object
com.gigaspaces.internal.query.AbstractCustomQuery
com.j_spaces.jdbc.builder.range.Range
com.j_spaces.jdbc.builder.range.SingleValueRange
com.j_spaces.jdbc.builder.range.ContainsValueRange
- All Implemented Interfaces:
ICustomQuery,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
ContainsItemValueRange
Represents a value range used by ContainsNode.
- Since:
- 8.0
- Author:
- idan
- See Also:
-
Field Summary
FieldsFields inherited from class com.j_spaces.jdbc.builder.range.Range
EMPTY_RANGE -
Constructor Summary
ConstructorsConstructorDescriptionContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode) ContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode, ContainsPredicate predicate) ContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode, String relation, String typeName) -
Method Summary
Modifier and TypeMethodDescriptionshortintersection(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) booleanbooleanmatches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Checks whether the specified entry matches this query.voidvoidtoEntryPacket(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.SingleValueRange
getValue, isRelevantForAllIndexValuesOptimization, setValueMethods inherited from class com.j_spaces.jdbc.builder.range.Range
chooseRange, evaluatePredicate, getFunction, getFunctionCallDescription, getPath, getPredicate, getRightColumnPosition, hasFunctionCallDescription, hasFunctionOnlyOnOneSide, hasSameFunction, intersection, intersection, isEmptyRange, isEqualValueRange, isIndexed, isInternalRange, isNestedQuery, isSegmentRange, isUidsRange, 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
-
Field Details
-
_templateMatchCode
protected short _templateMatchCode
-
-
Constructor Details
-
ContainsValueRange
public ContainsValueRange() -
ContainsValueRange
public ContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode) -
ContainsValueRange
public ContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode, ContainsPredicate predicate) -
ContainsValueRange
public ContainsValueRange(String colName, FunctionCallDescription functionCallDescription, Object value, short templateMatchCode, String relation, String typeName)
-
-
Method Details
-
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
-
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
-
toSQLQuery
- Parameters:
typeDesc- TODO- Returns:
- SQLQuery
-
isComplex
public boolean isComplex() -
matches
public boolean matches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Description copied from interface:ICustomQueryChecks whether the specified entry matches this query.- Specified by:
matchesin interfaceICustomQuery- Overrides:
matchesin classRange- Returns:
- Returns true if the specified entry matches this query, false otherwise.
-
getIndexScanner
- Overrides:
getIndexScannerin classRange
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSingleValueRange- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSingleValueRange- Throws:
IOException
-
getTemplateMatchCode
public short getTemplateMatchCode()
-