Package com.gigaspaces.internal.query
Class RangeIndexScanner
java.lang.Object
com.gigaspaces.internal.query.AbstractQueryIndex
com.gigaspaces.internal.query.RangeIndexScanner
- All Implemented Interfaces:
IQueryIndexScanner,SmartExternalizable,Externalizable,Serializable
Scans only the entries in the defined range
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.internal.query.IQueryIndexScanner
IQueryIndexScanner.ResultIndicator -
Field Summary
Fields inherited from interface com.gigaspaces.internal.query.IQueryIndexScanner
RESULT_IGNORE_INDEX, RESULT_NO_MATCH -
Constructor Summary
ConstructorsConstructorDescriptionRangeIndexScanner(String indexName, Comparable<?> min, boolean includeMin, Comparable<?> max, boolean includeMax) -
Method Summary
Modifier and TypeMethodDescriptionprotected IObjectsListgetEntriesByIndex(Context context, TypeData typeData, TypeDataIndex<Object> index, boolean fifoGroupsScan) The value of the index - objects are indexed and stored according to specific index value.Comparable<?>getMax()Comparable<?>getMin()protected booleanbooleanbooleanvoidbooleanReturns true if this index scanner requires an ordered indexbooleanReturns true if this index scanner supports template indexingvoidMethods inherited from class com.gigaspaces.internal.query.AbstractQueryIndex
getIndexedEntriesByType, getIndexName, isExtendsAbstractQueryIndex, isUidsScanner, requiresValueForIndexSearch, supportsFifoOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.query.IQueryIndexScanner
getIndexUsageCounterMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
RangeIndexScanner
public RangeIndexScanner() -
RangeIndexScanner
public RangeIndexScanner(String indexName, Comparable<?> min, boolean includeMin, Comparable<?> max, boolean includeMax)
-
-
Method Details
-
getEntriesByIndex
protected IObjectsList getEntriesByIndex(Context context, TypeData typeData, TypeDataIndex<Object> index, boolean fifoGroupsScan) - Specified by:
getEntriesByIndexin classAbstractQueryIndex
-
hasIndexValue
protected boolean hasIndexValue()- Specified by:
hasIndexValuein classAbstractQueryIndex
-
getIndexValue
Description copied from interface:IQueryIndexScannerThe value of the index - objects are indexed and stored according to specific index value. This value will be used to search the index structure for entries that match this value . -
getMin
-
getMax
-
isIncludeMin
public boolean isIncludeMin() -
isIncludeMax
public boolean isIncludeMax() -
requiresOrderedIndex
public boolean requiresOrderedIndex()Description copied from interface:IQueryIndexScannerReturns true if this index scanner requires an ordered index -
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractQueryIndex- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractQueryIndex- Throws:
IOException
-
supportsTemplateIndex
public boolean supportsTemplateIndex()Description copied from interface:IQueryIndexScannerReturns true if this index scanner supports template indexing
-