cz.seznam.euphoria.core.client.dataset.Dataset.isBounded()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(187)

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

Dataset.isBounded介绍

暂无

代码示例

代码示例来源:origin: seznam/euphoria

/**
 * Create output dataset for given operator.
 *
 * @param <IN> the type of elements of the input dataset
 * @param <OUT> the type of elements in the output dataset
 *
 * @param flow the flow to associate the output dataset with
 * @param input the input dataset the output dataset is indirectly derived from
 * @param op the operator producing the output dataset
 *
 * @return a dataset representing the output of the given operator
 */
public static <IN, OUT> Dataset<OUT> createOutputFor(
  Flow flow, Dataset<IN> input, Operator<IN, OUT> op) {
 return new OutputDataset<>(flow, op, input.isBounded());
}

代码示例来源:origin: seznam/euphoria

/**
 * Checks if the given {@link Flow} reads bounded inputs
 *
 * @param flow the flow to inspect
 *
 * @return {@code true} if all sources are bounded
 */
private boolean isBoundedInput(Flow flow) {
 // check if sources are bounded or not
 for (Dataset<?> ds : flow.sources()) {
  if (!ds.isBounded()) {
   return false;
  }
 }
 return true;
}

代码示例来源:origin: seznam/euphoria

/**
 * Create output dataset for given operator.
 *
 * @param <IN> the type of elements of the input dataset
 * @param <OUT> the type of elements in the output dataset
 *
 * @param flow the flow to associate the output dataset with
 * @param input the input dataset the output dataset is indirectly derived from
 * @param op the operator producing the output dataset
 *
 * @return a dataset representing the output of the given operator
 */
public static <IN, OUT> Dataset<OUT> createOutputFor(
  Flow flow, Dataset<IN> input, Operator<IN, OUT> op) {
 return new OutputDataset<>(flow, op, input.isBounded());
}

代码示例来源:origin: seznam/euphoria

/**
 * Determines {@link Mode} of the given flow.
 *
 * @param flow the flow to inspect
 *
 * @return the given flow's mode; never {@code null}
 */
public static Mode determineMode(Flow flow) {
 // check if sources are bounded or not
 for (Dataset<?> ds : flow.sources()) {
  if (!ds.isBounded()) {
   return Mode.STREAMING;
  }
 }
 // default mode is batch
 return Mode.BATCH;
}

代码示例来源:origin: seznam/euphoria

reduceStateByKey.input().isBounded()
 ? new NoopTriggerScheduler()
 : (windowing != null

代码示例来源:origin: seznam/euphoria

reduceStateByKey.input().isBounded()
 ? new NoopTriggerScheduler()
 : (windowing != null

代码示例来源:origin: seznam/euphoria

.withTable(table)
.withOutputPath(new Path(tmpDir))
.applyIf(ds.isBounded(),
  b -> b.windowBy(GlobalWindowing.get(), w -> ""),
  b -> b.windowBy(

相关文章