org.apache.flink.streaming.api.datastream.AllWindowedStream.maxBy()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.apache.flink.streaming.api.datastream.AllWindowedStream.maxBy()方法的一些代码示例,展示了AllWindowedStream.maxBy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AllWindowedStream.maxBy()方法的具体详情如下:
包路径:org.apache.flink.streaming.api.datastream.AllWindowedStream
类名称:AllWindowedStream
方法名:maxBy

AllWindowedStream.maxBy介绍

[英]Applies an aggregation that gives the maximum element of every window of the data stream by the given position. If more elements have the same maximum value the operator returns the first by default.
[中]

代码示例

代码示例来源:origin: apache/flink

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: apache/flink

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: org.apache.flink/flink-streaming-java

/**
 * Applies an aggregation that gives the maximum element of every window of
 * the data stream by the given position. If more elements have the same
 * maximum value the operator returns the first by default.
 *
 * @param positionToMaxBy
 *            The position to maximize by
 * @return The transformed DataStream.
 */
public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
  return this.maxBy(positionToMaxBy, true);
}

代码示例来源:origin: dataArtisans/flink-training-exercises

.maxBy(2);

相关文章