code: public static <T> PatternStream<T> pattern(DataStream<T> input, Pattern<T, ?> pattern) {
  		return new PatternStream<>(input, pattern);
  	}
docs: Creates a {@link PatternStream} from an input data stream and a pattern.
  
  @param input DataStream containing the input events
  @param pattern Pattern specification which shall be detected
  @param <T> Type of the input events
  @return Resulting pattern stream