|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.rules.AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask
protected abstract static class AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask
Custom rule execution task. You must implement getSet().
| Field Summary | |
|---|---|
protected IConstant<Long> |
propertyId
|
protected IConstant<Long> |
rdfsSubPropertyOf
|
| Constructor Summary | |
|---|---|
AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask(String database,
String focusStore,
IRule rule,
IJoinNexus joinNexus,
IBuffer<ISolution[]> buffer,
IConstant<Long> rdfsSubPropertyOf,
IConstant<Long> propertyId)
(?x, {P}, ?y) -> (?x, propertyId, ?y)
Note: Both the database and the (optional) focusStore relation names
MUST be declared for these rules. |
|
| Method Summary | |
|---|---|
RuleStats |
call()
Evaluate the rule. |
protected abstract Set<Long> |
getSet()
Return the set of term identifiers that will be processed by the rule. |
protected long[] |
getSortedArray(Set<Long> ids)
Convert a Set of term identifiers into a sorted array of term
identifiers. |
protected Set<Long> |
getSubProperties()
Delegates to AbstractRuleFastClosure_3_5_6_7_9.SubPropertyClosureTask |
protected Set<Long> |
getSubPropertiesOf(IConstant<Long> propertyId)
Delegates to AbstractRuleFastClosure_3_5_6_7_9.SubPropertiesOfClosureTask |
protected IRelation<ISPO> |
getView()
Return the IRelation (or RelationFusedView) used by
the getSet() impls for their IAccessPaths. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IConstant<Long> rdfsSubPropertyOf
protected final IConstant<Long> propertyId
| Constructor Detail |
|---|
public AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask(String database,
String focusStore,
IRule rule,
IJoinNexus joinNexus,
IBuffer<ISolution[]> buffer,
IConstant<Long> rdfsSubPropertyOf,
IConstant<Long> propertyId)
(?x, {P}, ?y) -> (?x, propertyId, ?y)
Note: Both the database and the (optional) focusStore relation names
MUST be declared for these rules. While the rule only declares a
single tail predicate, there is a "hidden" query based on the
[database + focusStore] fused view that populates the P,D,C,R, or T
Set which is an input to the custom evaluation of the rule.
database - Name of the database relation (required).focusStore - Optional name of the focusStore relation (may be null).
When non-null, this is used to query the
fused view of the [database + focusStore] in
getView().rule - The rule.joinNexus - buffer - A buffer used to accumulate chunks of entailments.rdfsSubPropertyOf - The Constant corresponding to the term identifier
for rdfs:subPropertyOf.propertyId - The propertyId to be used in the assertions.| Method Detail |
|---|
public RuleStats call()
IStepTask
call in interface IStepTaskcall in interface Callable<RuleStats>protected long[] getSortedArray(Set<Long> ids)
Set of term identifiers into a sorted array of term
identifiers.
Note: When issuing multiple queries against the database, it is generally faster to issue those queries in key order.
protected IRelation<ISPO> getView()
IRelation (or RelationFusedView) used by
the getSet() impls for their IAccessPaths.
protected abstract Set<Long> getSet()
Note: The subclass need only invoke getSubProperties() or
getSubPropertiesOf(IConstant) as appropriate for the rule.
protected Set<Long> getSubProperties()
AbstractRuleFastClosure_3_5_6_7_9.SubPropertyClosureTask
protected Set<Long> getSubPropertiesOf(IConstant<Long> propertyId)
AbstractRuleFastClosure_3_5_6_7_9.SubPropertiesOfClosureTask
propertyId - The property of interest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||