public class DefaultRuleTaskFactory extends Object implements IRuleTaskFactory, Externalizable
IRules.| 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 IBindingSets are streamed in chunks to
the downstream JoinTask(s). Therefore, all index
operations are local and only the intermediate IBindingSets and
the final ISolutions are moved using RMI.
public DefaultRuleTaskFactory()
public DefaultRuleTaskFactory(boolean subquery)
public IStepTask newTask(IRule rule, IJoinNexus joinNexus, IBuffer<ISolution[]> buffer)
IRuleTaskFactoryIRule.newTask in interface IRuleTaskFactoryrule - 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 ISolutions
for the IRule must be written.null unless custom evaluation is desired.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.