Package com.j_spaces.kernel.list
Class MultiStoredList<T>
java.lang.Object
com.j_spaces.kernel.list.MultiStoredList<T>
- All Implemented Interfaces:
IObjectsList,IScanListIterator<T>
- Direct Known Subclasses:
FifoGroupsMultiList
List of stored lists. Used to create a union of several lists. For example for matching a
collection of values. Note:The list doesn't support multithreaded.
- Since:
- 8.0
- Version:
- 1.0
- Author:
- anna
-
Constructor Summary
ConstructorsConstructorDescriptionMultiStoredList(List<IObjectsList> multiList, boolean fifoScan) MultiStoredList(List<IObjectsList> multiList, boolean fifoScan, boolean alternatingThread) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IObjectsList l) create a shallow copy ready for alternating thread usagebooleanintif the scan is on a property index, currently supported for extended indexprotected IScanListIterator<T>inthashCode()booleanhasNext()booleanhasSize()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 ?booleandoes this iter contain multiple listsnext()protected IScanListIterator<T>voidrelease SLHolder for this scanvoidremove()intsize()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j_spaces.kernel.list.IScanListIterator
getAlreadyMatchedIndexPath, isExtensionIndex, noRematchNeeded
-
Constructor Details
-
MultiStoredList
public MultiStoredList() -
MultiStoredList
-
MultiStoredList
-
-
Method Details
-
add
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIScanListIterator<T>
-
next
- Specified by:
nextin interfaceIScanListIterator<T>
-
remove
public void remove() -
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
-
getCurrentList
-
getAllLists
-
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
-
hashCode
public int hashCode() -
equals
-
hasSize
public boolean hasSize()- Specified by:
hasSizein interfaceIScanListIterator<T>- Returns:
- true if the iterator knows its size, and size() can be called.
-
size
public int size()- Specified by:
sizein interfaceIScanListIterator<T>
-