public class JVMPipelinedHashJoinUtility extends JVMHashJoinUtility implements PipelinedHashJoinUtility
PipelinedHashIndexAndSolutionSetJoinOp
for a
documentation of this functionality.Modifier and Type | Field and Description |
---|---|
static IHashJoinUtilityFactory |
factory
Singleton
IHashJoinUtilityFactory that can be used to create a
new JVMPipelinedHashJoinUtility . |
protected CAT |
nDistinctBindingSets
The #of distinct projections from the given input bindings
|
protected CAT |
nDistinctBindingSetsReleased
The #of distinct binding sets that have flown into the subquery.
|
protected CAT |
nResultsFromSubqueries
The #of results returned by the subqueries
|
protected CAT |
nSubqueriesIssued
The #of subqueries that have been issued.
|
askVar, constraints, joinType, joinVars, nJoinsConsidered, nleftConsidered, nrightConsidered, open, outputDistinctJVs, rightSolutionCount, rightSolutionsRef, selectVars
Constructor and Description |
---|
JVMPipelinedHashJoinUtility(PipelineOp op,
JoinTypeEnum joinType,
BOpContext<IBindingSet> context,
int chunkCapacity) |
Modifier and Type | Method and Description |
---|---|
long |
acceptAndOutputSolutions(UnsyncLocalOutputBuffer<IBindingSet> out,
ICloseableIterator<IBindingSet[]> itr,
NamedSolutionSetStats stats,
IConstraint[] joinConstraints,
PipelineOp subquery,
IBindingSet[] bsFromBindingsSetSource,
IVariable<?>[] projectInVars,
IVariable<?> askVar,
boolean isLastInvocation,
int distinctProjectionBufferThreshold,
int incomingBindingsBufferThreshold,
BOpContext<IBindingSet> context)
AcceptAndOutputSolutions is a special method for building the hash index
of the
JVMPipelinedHashIndex , which accepts and immediately
forwards relevant solutions (non-blocking index). |
void |
hashJoinAndEmit(IBindingSet[] chunk,
BOpStats stats,
IBuffer<IBindingSet> outputBuffer,
IConstraint[] joinConstraints,
IVariable<?> askVar)
Executes the hash join for the chunk of solutions that is passed in
over rightSolutions and outputs the solutions.
|
protected RuntimeException |
launderThrowable(Throwable t)
Adds metadata about the
IHashJoinUtility state to the stack
trace. |
String |
toString()
Human readable representation of the
IHashJoinUtility metadata
(but not the solutions themselves). |
acceptSolutions, filterSolutions, getAskVar, getConstraints, getJoinType, getJoinVars, getNoJoinVarsLimit, getRightSolutionCount, getRightSolutions, getSelectVars, hashJoin, hashJoin2, indexScan, isEmpty, isOutputDistinctJoinVars, mergeJoin, outputJoinSet, outputOptionals, outputSolution, outputSolutions, release, saveSolutionSet
protected final CAT nDistinctBindingSets
protected final CAT nDistinctBindingSetsReleased
protected final CAT nSubqueriesIssued
protected final CAT nResultsFromSubqueries
public static final IHashJoinUtilityFactory factory
IHashJoinUtilityFactory
that can be used to create a
new JVMPipelinedHashJoinUtility
.public JVMPipelinedHashJoinUtility(PipelineOp op, JoinTypeEnum joinType, BOpContext<IBindingSet> context, int chunkCapacity)
public long acceptAndOutputSolutions(UnsyncLocalOutputBuffer<IBindingSet> out, ICloseableIterator<IBindingSet[]> itr, NamedSolutionSetStats stats, IConstraint[] joinConstraints, PipelineOp subquery, IBindingSet[] bsFromBindingsSetSource, IVariable<?>[] projectInVars, IVariable<?> askVar, boolean isLastInvocation, int distinctProjectionBufferThreshold, int incomingBindingsBufferThreshold, BOpContext<IBindingSet> context)
PipelinedHashJoinUtility
JVMPipelinedHashIndex
, which accepts and immediately
forwards relevant solutions (non-blocking index).acceptAndOutputSolutions
in interface PipelinedHashJoinUtility
public void hashJoinAndEmit(IBindingSet[] chunk, BOpStats stats, IBuffer<IBindingSet> outputBuffer, IConstraint[] joinConstraints, IVariable<?> askVar)
protected RuntimeException launderThrowable(Throwable t)
IHashJoinUtility
state to the stack
trace.t
- The thrown error.Exception
public String toString()
IHashJoinUtility
metadata
(but not the solutions themselves).toString
in class JVMHashJoinUtility
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.