Class QBQuadHolder

  • All Implemented Interfaces:
    QuadHolder

    public class QBQuadHolder
    extends java.lang.Object
    implements QuadHolder
    An QuadHolder that manages AbstractQueryBuilder data.
    • Constructor Detail

      • QBQuadHolder

        public QBQuadHolder​(Node graph,
                            AbstractQueryBuilder<?> qb)
        Constructor.
        Parameters:
        graph - the default graph name for the triples
        qb - the AbstractQueryBuilder that is providing the triples.
      • QBQuadHolder

        public QBQuadHolder​(AbstractQueryBuilder<?> qb)
        Constructor. Uses Quad.defaultGraphNodeGenerated for the graph name.
        Parameters:
        qb - the AbstractQueryBuilder that is providing the triples.
        See Also:
        Quad.defaultGraphNodeGenerated
    • Method Detail

      • getQuads

        public ExtendedIterator<Quad> getQuads()
        Description copied from interface: QuadHolder
        Get an extended iterator over the quads this holder holds.
        Specified by:
        getQuads in interface QuadHolder
        Returns:
        the extended iterator.
      • setValues

        public QuadHolder setValues​(java.util.Map<Var,​Node> values)
        Description copied from interface: QuadHolder
        Apply values to the variables in the quads held by this holder. May return this holder or a new holder instance.
        Specified by:
        setValues in interface QuadHolder
        Parameters:
        values - the values to set.
        Returns:
        a QuadHolder in which the variables have been replaced.