Package com.j_spaces.jdbc.builder.range
Class Range
java.lang.Object
com.gigaspaces.internal.query.AbstractCustomQuery
com.j_spaces.jdbc.builder.range.Range
- All Implemented Interfaces:
ICustomQuery,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
CompositeRange,CriteriaRange,EmptyRange,InRange,IsNullRange,NotNullRange,SegmentRange,SingleValueRange,TwoColumnsSegmentRange,UidsRange
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyRangeEmpty range indicates an intersection between two non-overlapping ranges -
Constructor Summary
ConstructorsModifierConstructorDescriptionRange()Default constructor for Externalizable.protectedRange(String path, FunctionCallDescription functionCallDescription, ISpacePredicate predicate) protectedRange(String path, FunctionCallDescription functionCallDescription, ISpacePredicate predicate, short rightColumnPosition) -
Method Summary
Modifier and TypeMethodDescriptionprotected RangechooseRange(Set<Object> matchObjects) booleanevaluatePredicate(IEntryData entryData) getPath()shortprotected booleanhasFunctionCallDescription(Range range) protected booleanhasFunctionOnlyOnOneSide(Range range, Range range1) protected booleanhasSameFunction(Range range) intersection(CompositeRange range) intersection(EmptyRange range) abstract Rangeintersection(EqualValueRange range) abstract Rangeintersection(InRange range) abstract Rangeintersection(IsNullRange range) abstract Rangeintersection(NotEqualValueRange range) abstract Rangeintersection(NotNullRange range) abstract Rangeintersection(NotRegexRange range) abstract Rangeintersection(Range range) abstract Rangeintersection(RegexRange range) abstract Rangeintersection(RelationRange range) abstract Rangeintersection(SegmentRange range) booleanbooleanbooleanbooleanbooleanbooleanReturns true if the query is nested ex: person.address.street = 'Wallstreet'booleanbooleanbooleanbooleanmatches(CacheManager cacheManager, ServerEntry entry, String skipAlreadyMatchedIndexPath) Checks whether the specified entry matches this query.voidvoidsetFunction(SqlFunction function) voidsetFunctionCallDescription(FunctionCallDescription functionCallDescription) booleanvoidtoEntryPacket(QueryTemplatePacket e, int index) Convert the range to a single external entry expressionprotected booleantwoBuiltInFunctions(Range range1, Range range2) voidMethods 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.internal.query.ICustomQuery
toSQLQueryMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
EMPTY_RANGE
Empty range indicates an intersection between two non-overlapping ranges
-
-
Constructor Details
-
Range
public Range()Default constructor for Externalizable. -
Range
protected Range(String path, FunctionCallDescription functionCallDescription, ISpacePredicate predicate) -
Range
protected Range(String path, FunctionCallDescription functionCallDescription, ISpacePredicate predicate, short rightColumnPosition)
-
-
Method Details
-
isIndexed
-
getPredicate
-
getPath
-
getRightColumnPosition
public short getRightColumnPosition() -
isNestedQuery
public boolean isNestedQuery()Returns true if the query is nested ex: person.address.street = 'Wallstreet' -
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- Specified by:
matchesin classAbstractCustomQuery- Returns:
- Returns true if the specified entry matches this query, false otherwise.
-
toEntryPacket
Convert the range to a single external entry expression -
isComplex
public boolean isComplex() -
getIndexScanner
-
intersection
-
intersection
-
intersection
-
suitableAsCompoundIndexSegment
public boolean suitableAsCompoundIndexSegment() -
isEqualValueRange
public boolean isEqualValueRange() -
isSegmentRange
public boolean isSegmentRange() -
isInternalRange
public boolean isInternalRange() -
isEmptyRange
public boolean isEmptyRange() -
intersection
-
intersection
-
intersection
-
intersection
-
intersection
-
intersection
-
intersection
-
intersection
-
intersection
-
isRelevantForAllIndexValuesOptimization
public boolean isRelevantForAllIndexValuesOptimization() -
getFunctionCallDescription
-
setFunctionCallDescription
-
hasSameFunction
-
hasFunctionCallDescription
-
twoBuiltInFunctions
-
getFunction
-
setFunction
-
isUidsRange
public boolean isUidsRange() -
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractCustomQuery- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractCustomQuery- Throws:
IOException
-
chooseRange
-
hasFunctionOnlyOnOneSide
-
evaluatePredicate
-