All Implemented Interfaces:
Serializable

public class View extends EPBaseNamedObject
A view provides a projection upon a stream, such as a data window, grouping or unique. For views, the namespace is an optional value and can be null for any-namespace.
See Also:
  • Constructor Details

    • View

      public View()
      Ctor.
    • View

      public View(String namespace, String name, List<Expression> parameters)
      Creates a view.
      Parameters:
      namespace - is thie view namespace, i.e. "win" for data windows
      name - is the view name, i.e. "length" for length window
      parameters - is a list of view parameters, or empty if there are no parameters for the view
  • Method Details

    • create

      public static View create(String namespace, String name)
      Creates a view.
      Parameters:
      namespace - is thie view namespace, i.e. "win" for data windows
      name - is the view name, i.e. "length" for length window
      Returns:
      view
    • create

      public static View create(String name)
      Creates a view.
      Parameters:
      name - is the view name, i.e. "length" for length window
      Returns:
      view
    • create

      public static View create(String namespace, String name, List<Expression> parameters)
      Creates a view.
      Parameters:
      namespace - is thie view namespace, i.e. "win" for data windows
      name - is the view name, i.e. "length" for length window
      parameters - is a list of view parameters, or empty if there are no parameters for the view
      Returns:
      view
    • create

      public static View create(String name, List<Expression> parameters)
      Creates a view.
      Parameters:
      name - is the view name, i.e. "length" for length window
      parameters - is a list of view parameters, or empty if there are no parameters for the view
      Returns:
      view
    • create

      public static View create(String namespace, String name, Expression... parameters)
      Creates a view.
      Parameters:
      namespace - is thie view namespace, i.e. "win" for data windows
      name - is the view name, i.e. "length" for length window
      parameters - is a list of view parameters, or empty if there are no parameters for the view
      Returns:
      view
    • create

      public static View create(String name, Expression... parameters)
      Creates a view.
      Parameters:
      name - is the view name, i.e. "length" for length window
      parameters - is a list of view parameters, or empty if there are no parameters for the view
      Returns:
      view
    • toEPLWithHash

      public void toEPLWithHash(StringWriter writer)
      Render view.
      Parameters:
      writer - to render to