public class DefaultRuleTaskFactory extends Object implements IRuleTaskFactory, Externalizable
IRule
s.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
static IRuleTaskFactory |
PIPELINE
Pipeline join strategy.
|
Constructor and Description |
---|
DefaultRuleTaskFactory()
De-serialization ctor.
|
DefaultRuleTaskFactory(boolean subquery) |
Modifier and Type | Method and Description |
---|---|
IStepTask |
newTask(IRule rule,
IJoinNexus joinNexus,
IBuffer<ISolution[]> buffer)
The object will be used to evaluate the rule for the
IRule . |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
protected static final org.apache.log4j.Logger log
public static final transient IRuleTaskFactory PIPELINE
Note: This join strategy was designed for scale-out evaluation but does
better for local deployments as well. It starts a JoinTask
per
index partition on which the join must read while evaluating the rule.
This gives it access to the local index objects for each index partition
of interest. Intermediate IBindingSet
s are streamed in chunks to
the downstream JoinTask
(s). Therefore, all index
operations are local and only the intermediate IBindingSet
s and
the final ISolution
s are moved using RMI.
public DefaultRuleTaskFactory()
public DefaultRuleTaskFactory(boolean subquery)
public IStepTask newTask(IRule rule, IJoinNexus joinNexus, IBuffer<ISolution[]> buffer)
IRuleTaskFactory
IRule
.newTask
in interface IRuleTaskFactory
rule
- The rule (MAY have been specialized since it was declared).joinNexus
- Encapsulates various important information required for join
operations.buffer
- The buffer onto which chunks of computed ISolution
s
for the IRule
must be written.null
unless custom evaluation is desired.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.