Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.EmptySet


      TupleExpr leftArg = join.getLeftArg();
      TupleExpr rightArg = join.getRightArg();

      if (leftArg instanceof EmptySet || rightArg instanceof EmptySet) {
        join.replaceWith(new EmptySet());
      }
      else if (leftArg instanceof SingletonSet) {
        join.replaceWith(rightArg);
      }
      else if (rightArg instanceof SingletonSet) {
View Full Code Here


      }
      else if (rightArg instanceof EmptySet) {
        difference.replaceWith(leftArg);
      }
      else if (leftArg instanceof SingletonSet && rightArg instanceof SingletonSet) {
        difference.replaceWith(new EmptySet());
      }
    }
View Full Code Here

    else if (projList.size() > 1) {
      result = new MultiProjection(result, projList);
    }
    else {
      // Empty constructor
      result = new EmptySet();
    }

    return result;
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.EmptySet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.