Package com.j_spaces.kernel.list
Class MultiIntersectedStoredList<T>
java.lang.Object
com.j_spaces.kernel.list.MultiIntersectedStoredList<T>
- All Implemented Interfaces:
IObjectsList,IScanListIterator<T>
List of lists that should return result after intersection.
- Since:
- 10.0
- Version:
- 1.0
- Author:
- Yechiel
-
Constructor Summary
ConstructorsConstructorDescriptionMultiIntersectedStoredList(Context context, IObjectsList list, boolean fifoScan, IObjectsList allElementslist, boolean falsePositiveFilterOnly) MultiIntersectedStoredList(Context context, IObjectsList list, boolean fifoScan, IObjectsList allElementslist, boolean falsePositiveFilterOnly, boolean alternatingThread) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IObjectsList list, boolean shortest) create a shallow copy ready for alternating thread usageintif the scan is on a property index, currently supported for extended indexbooleanhasNext()booleanis the entry returned already matched against the searching template currently is true if the underlying scan made by CacheManager::EntriesIterbooleanis the list an iterator or basic list ?booleanbooleandoes this iter contain multiple listsnext()protected IScanListIterator<T>voidrelease SLHolder for this scanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j_spaces.kernel.list.IScanListIterator
getAlreadyMatchedIndexPath, hasSize, isExtensionIndex, noRematchNeeded, size
-
Constructor Details
-
MultiIntersectedStoredList
public MultiIntersectedStoredList(Context context, IObjectsList list, boolean fifoScan, IObjectsList allElementslist, boolean falsePositiveFilterOnly) -
MultiIntersectedStoredList
public MultiIntersectedStoredList(Context context, IObjectsList list, boolean fifoScan, IObjectsList allElementslist, boolean falsePositiveFilterOnly, boolean alternatingThread)
-
-
Method Details
-
add
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIScanListIterator<T>
-
next
- Specified by:
nextin interfaceIScanListIterator<T>
-
releaseScan
public void releaseScan()Description copied from interface:IScanListIteratorrelease SLHolder for this scan- Specified by:
releaseScanin interfaceIScanListIterator<T>
-
getAlreadyMatchedFixedPropertyIndexPos
public int getAlreadyMatchedFixedPropertyIndexPos()Description copied from interface:IScanListIteratorif the scan is on a property index, currently supported for extended index- Specified by:
getAlreadyMatchedFixedPropertyIndexPosin interfaceIScanListIterator<T>
-
isAlreadyMatched
public boolean isAlreadyMatched()Description copied from interface:IScanListIteratoris the entry returned already matched against the searching template currently is true if the underlying scan made by CacheManager::EntriesIter- Specified by:
isAlreadyMatchedin interfaceIScanListIterator<T>
-
isIterator
public boolean isIterator()Description copied from interface:IObjectsListis the list an iterator or basic list ?- Specified by:
isIteratorin interfaceIObjectsList
-
prepareListIterator
-
isMultiList
public boolean isMultiList() -
isMultiListsIterator
public boolean isMultiListsIterator()does this iter contain multiple lists- Specified by:
isMultiListsIteratorin interfaceIScanListIterator<T>
-
createCopyForAlternatingThread
create a shallow copy ready for alternating thread usage- Specified by:
createCopyForAlternatingThreadin interfaceIScanListIterator<T>- Returns:
- a new shallow copyed IScanListIterator ready for alternating thread usage NOTE!! should be called before first hasNext() call
-