Class CacheCoreIterator
java.lang.Object
org.aksw.commons.collections.SinglePrefetchIterator<CacheEntryImpl>
org.aksw.jena_sparql_api.cache.staging.CacheCoreIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<CacheEntryImpl>
public class CacheCoreIterator
extends org.aksw.commons.collections.SinglePrefetchIterator<CacheEntryImpl>
-
Constructor Summary
ConstructorsConstructorDescriptionCacheCoreIterator(ResultSet rs, Closeable inputStreamCloseAction, long timeToLive) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static CacheEntryImplcreateCacheEntry(ResultSet rs, Closeable closeAction, long timeToLive) protected CacheEntryImplprefetch()Methods inherited from class org.aksw.commons.collections.SinglePrefetchIterator
current, doRemove, finish, hasNext, next, remove, wasHasNextCalled, wasNextCalled, willAdvanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CacheCoreIterator
-
-
Method Details
-
createCacheEntry
public static CacheEntryImpl createCacheEntry(ResultSet rs, Closeable closeAction, long timeToLive) throws SQLException - Throws:
SQLException
-
prefetch
- Specified by:
prefetchin classorg.aksw.commons.collections.SinglePrefetchIterator<CacheEntryImpl>- Throws:
Exception
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.aksw.commons.collections.SinglePrefetchIterator<CacheEntryImpl>
-