|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--com.solarmetric.rd.rop.LazyResultList
Lazy ResultList implementation. It maintains a soft reference map of the items that we have already instantiated. If we ever resolve all of the values in the input, they will be copied over to a HashMap so that the input can be closed.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
LazyResultList(java.lang.Object input,
com.solarmetric.rd.rop.ResultObjectProvider rop,
int batchSize)
|
|
| Method Summary | |
void |
checkClosed()
Check to see if this ResultList has been closed, and if so, throw a NoSuchElementException. |
void |
close()
Close the list. |
boolean |
equals(java.lang.Object other)
|
protected void |
finalize()
|
void |
flush(int targetReduction)
Internal method to try to flush out all references that are not present elsewhere. |
protected void |
free()
|
java.lang.Object |
get(int index)
|
int |
getCacheSize()
|
java.util.Collection |
getCacheValues()
|
int |
getInstantiatedCount()
Returns the number of objects that are currently instantiated internally in this list. |
int |
hashCode()
|
boolean |
isClosed()
Returns true if the list has been closed. |
java.util.Iterator |
iterator()
|
java.util.ListIterator |
listIterator()
|
int |
size()
Return the size of this List. |
java.lang.String |
toString()
|
void |
useSoftMap()
|
void |
useWeakMap()
|
java.lang.Object |
writeReplace()
|
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Constructor Detail |
public LazyResultList(java.lang.Object input,
com.solarmetric.rd.rop.ResultObjectProvider rop,
int batchSize)
| Method Detail |
public java.lang.String toString()
toString in class java.util.AbstractCollectionpublic int getInstantiatedCount()
ResultList
getInstantiatedCount in interface ResultListpublic int getCacheSize()
public java.util.Collection getCacheValues()
public java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractListpublic void flush(int targetReduction)
public void useWeakMap()
public void useSoftMap()
public int size()
size in interface java.util.Listsize in class java.util.AbstractCollectionpublic void checkClosed()
ResultListNoSuchElementException.
checkClosed in interface ResultListpublic void close()
ResultList
close in interface ResultList
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected void free()
public java.util.Iterator iterator()
iterator in interface java.util.Listiterator in class java.util.AbstractListpublic java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class java.util.AbstractListpublic boolean isClosed()
ResultList
isClosed in interface ResultList
public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic int hashCode()
hashCode in interface java.util.ListhashCode in class java.util.AbstractListpublic boolean equals(java.lang.Object other)
equals in interface java.util.Listequals in class java.util.AbstractList
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||