Class 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.

    • Constructor Detail

      • NonUniqueTargetLang

        public NonUniqueTargetLang​(PlanNode parent)
    • Method Detail

      • depth

        public int depth()
        Specified by:
        depth in interface PlanNode
      • getPlanAsGraphvizDot

        public void getPlanAsGraphvizDot​(java.lang.StringBuilder stringBuilder)
        Specified by:
        getPlanAsGraphvizDot in interface PlanNode
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface PlanNode
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object