Class DatasetHandler

  • All Implemented Interfaces:
    Handler

    public class DatasetHandler
    extends java.lang.Object
    implements Handler
    Handler for a dataset.
    • Constructor Summary

      Constructors 
      Constructor Description
      DatasetHandler​(Query query)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAll​(DatasetHandler datasetHandler)
      Add all the dataset information from the handler argument.
      void build()
      Called by the build process for this handler to perform any adjustments to the query before the build completes.
      void from​(java.lang.String graphName)
      Add the graph names to the from list.
      void from​(java.util.Collection<java.lang.String> graphNames)
      Add the graph names to the named list.
      void fromNamed​(java.lang.String graphName)
      Add a graph name to the from named list.
      void fromNamed​(java.util.Collection<java.lang.String> graphNames)
      Add the graph names to the from named list.
      void setVars​(java.util.Map<Var,​Node> values)
      Set the values for variables managed by the handler implementation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatasetHandler

        public DatasetHandler​(Query query)
        Constructor.
        Parameters:
        query - The query the handler will manage.
    • Method Detail

      • addAll

        public void addAll​(DatasetHandler datasetHandler)
        Add all the dataset information from the handler argument.
        Parameters:
        datasetHandler - The handler to copy from.
      • fromNamed

        public void fromNamed​(java.lang.String graphName)
        Add a graph name to the from named list.
        Parameters:
        graphName - The graph name to add.
      • fromNamed

        public void fromNamed​(java.util.Collection<java.lang.String> graphNames)
        Add the graph names to the from named list. The names are ordered in as defined in the collection.
        Parameters:
        graphNames - The from names to add.
      • from

        public void from​(java.lang.String graphName)
        Add the graph names to the from list.
        Parameters:
        graphName - the name to add.
      • from

        public void from​(java.util.Collection<java.lang.String> graphNames)
        Add the graph names to the named list. The names are ordered in as defined in the collection.
        Parameters:
        graphNames - The names to add.
      • setVars

        public void setVars​(java.util.Map<Var,​Node> values)
        Description copied from interface: Handler
        Set the values for variables managed by the handler implementation. This method is called by the builder to set values handled by this Handler implementation.
        Specified by:
        setVars in interface Handler
        Parameters:
        values - The map of variable to node value.
      • build

        public void build()
        Description copied from interface: Handler
        Called by the build process for this handler to perform any adjustments to the query before the build completes. The adjustments are made after setVars() has been called.
        Specified by:
        build in interface Handler