Class OBasicLegacyResultSet<T>
java.lang.Object
com.orientechnologies.orient.core.sql.query.OBasicLegacyResultSet<T>
- Type Parameters:
T-
- All Implemented Interfaces:
OLegacyResultSet<T>,Externalizable,Serializable,Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
ResultSet class that implements List interface for retro compatibility.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
Fields -
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) voidremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) setLimit(int limit) voidsetTemporaryRecordCache(List<ORecord> temporaryRecordCache) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T1> T1[]toArray(T1[] a) voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
underlying
-
limit
protected transient int limit
-
-
Constructor Details
-
OBasicLegacyResultSet
public OBasicLegacyResultSet() -
OBasicLegacyResultSet
public OBasicLegacyResultSet(int iCapacity)
-
-
Method Details
-
setCompleted
- Specified by:
setCompletedin interfaceOLegacyResultSet<T>
-
set
-
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:
-
size
public int size() -
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() -
equals
-
hashCode
public int hashCode() -
get
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
getLimit
public int getLimit()- Specified by:
getLimitin interfaceOLegacyResultSet<T>
-
setLimit
- Specified by:
setLimitin interfaceOLegacyResultSet<T>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
copy
- Specified by:
copyin interfaceOLegacyResultSet<T>
-
isEmptyNoWait
public boolean isEmptyNoWait()- Specified by:
isEmptyNoWaitin interfaceOLegacyResultSet<T>
-
setTemporaryRecordCache
-