public class BigdataTriplePatternMaterializer extends AbstractChunkedResolverator<BigdataTriplePattern,ISPO,AbstractTripleStore> implements ICloseableIterator<ISPO>
Note: If the input contains triple patterns that have a high cardinality in the data, then a large number of statements may be returned.
state
Constructor and Description |
---|
BigdataTriplePatternMaterializer(AbstractTripleStore db,
IChunkedOrderedIterator<BigdataTriplePattern> src) |
BigdataTriplePatternMaterializer(AbstractTripleStore db,
IChunkedOrderedIterator<BigdataTriplePattern> src,
int nthreads) |
Modifier and Type | Method and Description |
---|---|
protected ISPO[] |
resolveChunk(BigdataTriplePattern[] chunk)
Resolves the elements in a source chunk, returning a chunk of resolved
elements.
|
BigdataTriplePatternMaterializer |
start(ExecutorService service)
Creates and runs a task that will consume chunks from the source
iterator, resolve the elements in each chunk, and place the resolved
chunks onto the
BlockingBuffer . |
close, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public BigdataTriplePatternMaterializer(AbstractTripleStore db, IChunkedOrderedIterator<BigdataTriplePattern> src)
public BigdataTriplePatternMaterializer(AbstractTripleStore db, IChunkedOrderedIterator<BigdataTriplePattern> src, int nthreads)
public BigdataTriplePatternMaterializer start(ExecutorService service)
AbstractChunkedResolverator
BlockingBuffer
.
You MUST invoke this before consuming results from the iterator.
Implementations SHOULD strengthen the return type.
start
in class AbstractChunkedResolverator<BigdataTriplePattern,ISPO,AbstractTripleStore>
service
- The service on which the task will be executed.protected ISPO[] resolveChunk(BigdataTriplePattern[] chunk)
AbstractChunkedResolverator
Note: This method is invoked by the ChunkConsumerTask
which runs
asynchronously.
resolveChunk
in class AbstractChunkedResolverator<BigdataTriplePattern,ISPO,AbstractTripleStore>
chunk
- The next chunk from the source iterator.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.