Class GenericFactorizer<E,V>

java.lang.Object
org.aksw.commons.util.algebra.GenericFactorizer<E,V>
Type Parameters:
E - The type of expressions.
V - The type of variables.

public class GenericFactorizer<E,V> extends Object
Generic class for factorization of common sub expressions. Main application is to abstract factorization of Jena's Op and Expr hierarchy.
  • Field Details

    • exprOps

      protected ExprOps<E,V> exprOps
    • isBlocker

      protected ExprFilter<E> isBlocker
      Predicate which can be used to stop descend down the expression tree
  • Constructor Details

  • Method Details

    • getExprOps

      public ExprOps<E,V> getExprOps()
    • getIsBlocker

      public ExprFilter<E> getIsBlocker()
    • factorize

      public E factorize(E expr, com.google.common.collect.BiMap<V,E> varCxt, Supplier<V> nextVar)
    • factorize

      public E factorize(E parent, int childIdx, E child, com.google.common.collect.BiMap<V,E> cxt, Supplier<V> nextVar)