Class NonUniqueTargetLang
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.planNodes.NonUniqueTargetLang
-
- All Implemented Interfaces:
PlanNode
public class NonUniqueTargetLang extends java.lang.Object implements PlanNode
This PlanNode takes a stream of Tuples like: (ex:companyA, "Company A"@en). It assumes that the stream is sorted on index 0 (eg. ex:CompanyA). It will cache all non-empty languages from index 1 (eg. "en") and outputs any tuples where the language has already been seen.If a Value on index 1 has no language because it is a literal without a language or because it is an IRI or BNode, then its language is considered empty and not cached.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PlanNodeparentprivate booleanprintedprivate ValidationExecutionLoggervalidationExecutionLogger
-
Constructor Summary
Constructors Constructor Description NonUniqueTargetLang(PlanNode parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdepth()booleanequals(java.lang.Object o)java.lang.StringgetId()voidgetPlanAsGraphvizDot(java.lang.StringBuilder stringBuilder)inthashCode()CloseableIteration<? extends ValidationTuple,SailException>iterator()booleanproducesSorted()voidreceiveLogger(ValidationExecutionLogger validationExecutionLogger)booleanrequiresSorted()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.planNodes.PlanNode
isGuaranteedEmpty
-
-
-
-
Field Detail
-
parent
PlanNode parent
-
printed
private boolean printed
-
validationExecutionLogger
private ValidationExecutionLogger validationExecutionLogger
-
-
Constructor Detail
-
NonUniqueTargetLang
public NonUniqueTargetLang(PlanNode parent)
-
-
Method Detail
-
iterator
public CloseableIteration<? extends ValidationTuple,SailException> iterator()
-
getPlanAsGraphvizDot
public void getPlanAsGraphvizDot(java.lang.StringBuilder stringBuilder)
- Specified by:
getPlanAsGraphvizDotin interfacePlanNode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
receiveLogger
public void receiveLogger(ValidationExecutionLogger validationExecutionLogger)
- Specified by:
receiveLoggerin interfacePlanNode
-
producesSorted
public boolean producesSorted()
- Specified by:
producesSortedin interfacePlanNode
-
requiresSorted
public boolean requiresSorted()
- Specified by:
requiresSortedin interfacePlanNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-