public void sinkQuad(Node g, Node s, Node p, Node o) {
    """
	If timer is turned on (periodicFlush = true in constructor)
	this method puts a quad into the cache which is periodically sent to MarkLogic
	otherwise it sends the quad directly
	
	@param g
	Graph node.
	@param s
	Subject node
	@param p
	Property node.
	@param o
	Object Node.
    """
        if (writeBuffer != null) {
            writeBuffer.add(g, s, p, o);
        } else {
            Graph graph = GraphFactory.createDefaultGraph();
            graph.add(Triple.create(s,p,o));
            mergeGraph(g.getURI(), graph);
            return;
        }
    }
public void sinkQuad(Node g, Node s, Node p, Node o) {
        if (writeBuffer != null) {
            writeBuffer.add(g, s, p, o);
        } else {
            Graph graph = GraphFactory.createDefaultGraph();
            graph.add(Triple.create(s,p,o));
            mergeGraph(g.getURI(), graph);
            return;
        }
    }
public void sinkQuad ( Node g , Node s , Node p , Node o ) { if ( writeBuffer != null ) { writeBuffer . add ( g , s , p , o ) ; } else { Graph graph = GraphFactory . createDefaultGraph ( ) ; graph . add ( Triple . create ( s , p , o ) ) ; mergeGraph ( g . getURI ( ) , graph ) ; return ; } }
If timer is turned on (periodicFlush = true in constructor)
this method puts a quad into the cache which is periodically sent to MarkLogic
otherwise it sends the quad directly

@param g
Graph node.
@param s
Subject node
@param p
Property node.
@param o
Object Node.
If timer is turned on ( periodicFlush = true in constructor ) this method puts a quad into the cache which is periodically sent to MarkLogic otherwise it sends the quad directly