Class QueryIterServiceBulk
java.lang.Object
org.apache.jena.atlas.iterator.IteratorSlotted<org.apache.jena.sparql.engine.binding.Binding>
org.apache.jena.sparql.service.enhancer.impl.util.QueryIterSlottedBase
org.apache.jena.sparql.service.enhancer.impl.QueryIterServiceBulk
- All Implemented Interfaces:
Iterator<org.apache.jena.sparql.engine.binding.Binding>,org.apache.jena.atlas.io.Printable,org.apache.jena.atlas.iterator.IteratorCloseable<org.apache.jena.sparql.engine.binding.Binding>,org.apache.jena.atlas.lib.Closeable,org.apache.jena.sparql.engine.QueryIterator,org.apache.jena.sparql.util.PrintSerializable
QueryIter to process service requests in bulk with support for streaming caching.
The methods closeIterator and moveToNext are synchronized.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryIterServiceBulk(OpServiceInfo serviceInfo, BatchQueryRewriter batchQueryRewriter, ServiceCacheKeyFactory cacheKeyFactory, OpServiceExecutor opExecutor, org.apache.jena.sparql.engine.ExecutionContext execCxt, List<org.apache.jena.sparql.engine.binding.Binding> inputs, ServiceResultSizeCache resultSizeCache, ServiceResponseCache cache, CacheMode cacheMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.jena.sparql.core.VargetPartKeyFromBinding(org.apache.jena.sparql.engine.binding.Binding binding) voidprepareNextBatchExec(boolean bypassCacheOnFirstInput) Prepare the lazy execution of the next batch and register all iterators withsliceKeyToIterMethods inherited from class org.apache.jena.sparql.service.enhancer.impl.util.QueryIterSlottedBase
cancel, nextBinding, output, output, toString, toStringMethods inherited from class org.apache.jena.atlas.iterator.IteratorSlotted
close, hasNext, next, peek, peekMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.atlas.lib.Closeable
closeMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
Constructor Details
-
QueryIterServiceBulk
public QueryIterServiceBulk(OpServiceInfo serviceInfo, BatchQueryRewriter batchQueryRewriter, ServiceCacheKeyFactory cacheKeyFactory, OpServiceExecutor opExecutor, org.apache.jena.sparql.engine.ExecutionContext execCxt, List<org.apache.jena.sparql.engine.binding.Binding> inputs, ServiceResultSizeCache resultSizeCache, ServiceResponseCache cache, CacheMode cacheMode)
-
-
Method Details
-
getIdxVar
public org.apache.jena.sparql.core.Var getIdxVar() -
getPartKeyFromBinding
-
closeIterator
public void closeIterator() -
prepareNextBatchExec
public void prepareNextBatchExec(boolean bypassCacheOnFirstInput) Prepare the lazy execution of the next batch and register all iterators withsliceKeyToIter
-