Class SpatialView

  • All Implemented Interfaces:
    View

    public class SpatialView
    extends Object
    implements View
    Implementation of a spatial view.
    Since:
    2.1.0
    Author:
    Michael Nitschinger
    • Constructor Detail

      • SpatialView

        protected SpatialView​(String name,
                              String map)
    • Method Detail

      • create

        public static View create​(String name,
                                  String map)
        Create a new representation of a spatial view.
        Parameters:
        name - the name of the spatial view.
        map - the map function (javascript) for the spatial view.
        Returns:
        the spatial view object.
      • name

        public String name()
        Description copied from interface: View
        The name of the view.
        Specified by:
        name in interface View
        Returns:
        the name.
      • map

        public String map()
        Description copied from interface: View
        The map function
        Specified by:
        map in interface View
        Returns:
        map function.
      • reduce

        public String reduce()
        Description copied from interface: View
        The reduce function.
        Specified by:
        reduce in interface View
        Returns:
        reduce function, or null if none is set.
      • hasReduce

        public boolean hasReduce()
        Description copied from interface: View
        If a reduce function is set or not.
        Specified by:
        hasReduce in interface View
        Returns:
        true if it is, false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object