Class OConcurrentLegacyResultSet<T>
java.lang.Object
com.orientechnologies.orient.core.sql.query.OConcurrentLegacyResultSet<T>
- Type Parameters:
T-
- All Implemented Interfaces:
OLegacyResultSet<T>,Externalizable,Serializable,Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
OLiveLegacyResultSet
ResultSet implementation that allows concurrent population.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final Objectprotected final Objectprotected final OBasicLegacyResultSet<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) copy()intReturns the current size.booleanget(int index) intgetLimit()inthashCode()intbooleanisEmpty()booleaniterator()intlistIterator(int index) protected voidvoidremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) setLimit(int limit) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T1> T1[]toArray(T1[] a) toString()protected voidprotected voidvoidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
waitForNextItem
-
waitForCompletion
-
wrapped
-
completed
protected transient volatile boolean completed
-
-
Constructor Details
-
OConcurrentLegacyResultSet
public OConcurrentLegacyResultSet() -
OConcurrentLegacyResultSet
-
-
Method Details
-
setCompleted
- Specified by:
setCompletedin interfaceOLegacyResultSet<T>
-
getLimit
public int getLimit()- Specified by:
getLimitin interfaceOLegacyResultSet<T>
-
setLimit
- Specified by:
setLimitin interfaceOLegacyResultSet<T>
-
copy
- Specified by:
copyin interfaceOLegacyResultSet<T>
-
isEmptyNoWait
public boolean isEmptyNoWait()- Specified by:
isEmptyNoWaitin interfaceOLegacyResultSet<T>
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
size
public int size() -
currentSize
public int currentSize()Description copied from interface:OLegacyResultSetReturns the current size. If the resultset is not yet ready, returns te current size.- Specified by:
currentSizein interfaceOLegacyResultSet<T>- Returns:
-
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T1> T1[] toArray(T1[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
hashCode
public int hashCode() -
equals
-
toString
-
waitForCompletion
protected void waitForCompletion() -
waitForNewItemOrCompleted
protected void waitForNewItemOrCompleted() -
notifyNewItem
protected void notifyNewItem()
-