当前位置: 首页>>代码示例>>Java>>正文


Java PravegaEventRouter类代码示例

本文整理汇总了Java中io.pravega.connectors.flink.PravegaEventRouter的典型用法代码示例。如果您正苦于以下问题:Java PravegaEventRouter类的具体用法?Java PravegaEventRouter怎么用?Java PravegaEventRouter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PravegaEventRouter类属于io.pravega.connectors.flink包,在下文中一共展示了PravegaEventRouter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: newExactlyOnceWriter

import io.pravega.connectors.flink.PravegaEventRouter; //导入依赖的package包/类
public <T extends Serializable> FlinkPravegaWriter<T> newExactlyOnceWriter(final StreamId stream,
																		   final SerializationSchema<T> serializationSchema,
																		   final PravegaEventRouter<T> router) {
	FlinkPravegaWriter writer = new FlinkPravegaWriter<T>(getControllerUri(), stream.getScope(), stream.getName(), serializationSchema, router);
	writer.setPravegaWriterMode(PravegaWriterMode.EXACTLY_ONCE);
	return writer;
}
 
开发者ID:pravega,项目名称:nautilus-samples,代码行数:8,代码来源:StreamUtils.java

示例2: newWriter

import io.pravega.connectors.flink.PravegaEventRouter; //导入依赖的package包/类
/**
 * Constructs a new writer using stream/scope name from job parameters.
 *
 * @param stream Stream to read from.
 * @param serializationSchema The implementation for serializing every event into pravega's storage format.
 * @param router The implementation to extract the partition key from the event.
 * @param <T> Type for events on this stream.
 */
public <T extends Serializable> FlinkPravegaWriter<T> newWriter(final StreamId stream,
                                                                final SerializationSchema<T> serializationSchema,
                                                                final PravegaEventRouter<T> router) {
    return new FlinkPravegaWriter<>(getControllerUri(), stream.getScope(), stream.getName(),
            serializationSchema, router);
}
 
开发者ID:pravega,项目名称:flink-connectors,代码行数:15,代码来源:FlinkPravegaParams.java

示例3: PravegaEventRouterKeySelector

import io.pravega.connectors.flink.PravegaEventRouter; //导入依赖的package包/类
/**
 * Creates a new key selector.
 *
 * @param eventRouter the event router to use.
 */
public PravegaEventRouterKeySelector(PravegaEventRouter<T> eventRouter) {
    this.eventRouter = Preconditions.checkNotNull(eventRouter);
}
 
开发者ID:pravega,项目名称:flink-connectors,代码行数:9,代码来源:PravegaEventRouterKeySelector.java


注:本文中的io.pravega.connectors.flink.PravegaEventRouter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。