src/main/java/com/datastax/sparql/gremlin/SparqlToGremlinCompiler.java
// operators/filters inherently and then map them to Gremlin
operators/filters inherently and then map them to Gremlin
operators / filters inherently and then map them to Gremlin
public void visit(final OpLeftJoin opLeftJoin) {
		System.out.println("Inside opOptional ---------------------------------------------->");
		System.out.println("Printing:========" + opLeftJoin.getRight().toString() + " ===== " + opLeftJoin.getExprs());
		optionalFlag = true;
		optionalVisit(opLeftJoin.getRight());
		if (opLeftJoin.getExprs() != null) {
			for (Expr expr : opLeftJoin.getExprs().getList()) {
				if (expr != null) {
					optTraversal = __.where(WhereTraversalBuilder.transform(expr));
					System.out.println("Visiting optional filter=============");
					if (optionalFlag)
						optionalTraversals.add(optTraversal);
				}
			}
		}
	}
public void visit ( final OpLeftJoin opLeftJoin ) { System . out . println ( "Inside opOptional ---------------------------------------------->" ) ; System . out . println ( "Printing:========" + opLeftJoin . getRight ( ) . toString ( ) + " ===== " + opLeftJoin . getExprs ( ) ) ; optionalFlag = true ; optionalVisit ( opLeftJoin . getRight ( ) ) ; if ( opLeftJoin . getExprs ( ) != null ) { for ( Expr expr : opLeftJoin . getExprs ( ) . getList ( ) ) { if ( expr != null ) { optTraversal = __ . where ( WhereTraversalBuilder . transform ( expr ) ) ; System . out . println ( "Visiting optional filter=============" ) ; if ( optionalFlag ) optionalTraversals . add ( optTraversal ) ; } } } }
operators/filters inherently and then map them to Gremlin
operators / filters inherently and then map them to Gremlin
// System.out.println(opLeftJoin.getRight().toString()); // OpWalker.walk(opLeftJoin.getRight(), this); // visit(opLeftJoin);