Class CountOperator<Type>

All Implemented Interfaces:
Serializable, ActualOperator, ElementaryOperator, Operator
Direct Known Subclasses:
FlinkCountOperator, JavaCountOperator, SparkCountOperator

public class CountOperator<Type> extends UnaryToUnaryOperator<Type,Long>
This operator returns the count of elements in this stream.
See Also:
  • Constructor Details

    • CountOperator

      public CountOperator(DataSetType<Type> type)
      Creates a new instance.
      Parameters:
      type - type of the stream elements
    • CountOperator

      public CountOperator(Class<Type> typeClass)
      Creates a new instance.
      Parameters:
      typeClass - type of the stream elements
    • CountOperator

      public CountOperator(CountOperator<Type> that)
      Copies an instance (exclusive of broadcasts).
      Parameters:
      that - that should be copied
  • Method Details