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


Java Evictor类代码示例

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


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

示例1: WithWindow

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
@PublicEvolving
protected WithWindow(DataStream<T1> input1,
		DataStream<T2> input2,
		KeySelector<T1, KEY> keySelector1,
		KeySelector<T2, KEY> keySelector2,
		TypeInformation<KEY> keyType,
		WindowAssigner<? super TaggedUnion<T1, T2>, W> windowAssigner,
		Trigger<? super TaggedUnion<T1, T2>, ? super W> trigger,
		Evictor<? super TaggedUnion<T1, T2>, ? super W> evictor) {

	this.input1 = requireNonNull(input1);
	this.input2 = requireNonNull(input2);

	this.keySelector1 = requireNonNull(keySelector1);
	this.keySelector2 = requireNonNull(keySelector2);
	this.keyType = requireNonNull(keyType);

	this.windowAssigner = requireNonNull(windowAssigner);

	this.trigger = trigger;
	this.evictor = evictor;
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:23,代码来源:JoinedStreams.java

示例2: WithWindow

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
protected WithWindow(DataStream<T1> input1,
		DataStream<T2> input2,
		KeySelector<T1, KEY> keySelector1,
		KeySelector<T2, KEY> keySelector2,
		TypeInformation<KEY> keyType,
		WindowAssigner<? super TaggedUnion<T1, T2>, W> windowAssigner,
		Trigger<? super TaggedUnion<T1, T2>, ? super W> trigger,
		Evictor<? super TaggedUnion<T1, T2>, ? super W> evictor) {
	this.input1 = input1;
	this.input2 = input2;

	this.keySelector1 = keySelector1;
	this.keySelector2 = keySelector2;
	this.keyType = keyType;

	this.windowAssigner = windowAssigner;
	this.trigger = trigger;
	this.evictor = evictor;
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:20,代码来源:CoGroupedStreams.java

示例3: EvictingWindowOperator

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
public EvictingWindowOperator(WindowAssigner<? super IN, W> windowAssigner,
		TypeSerializer<W> windowSerializer,
		KeySelector<IN, K> keySelector,
		TypeSerializer<K> keySerializer,
		StateDescriptor<? extends ListState<StreamRecord<IN>>, ?> windowStateDescriptor,
		InternalWindowFunction<Iterable<IN>, OUT, K, W> windowFunction,
		Trigger<? super IN, ? super W> trigger,
		Evictor<? super IN, ? super W> evictor,
		long allowedLateness,
		OutputTag<IN> lateDataOutputTag) {

	super(windowAssigner, windowSerializer, keySelector,
		keySerializer, null, windowFunction, trigger, allowedLateness, lateDataOutputTag);

	this.evictor = checkNotNull(evictor);
	this.evictingWindowStateDescriptor = checkNotNull(windowStateDescriptor);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:18,代码来源:EvictingWindowOperator.java

示例4: getEvictor

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
@VisibleForTesting
public Evictor<? super IN, ? super W> getEvictor() {
	return evictor;
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:5,代码来源:EvictingWindowOperator.java

示例5: evictor

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
/**
 * Sets the {@code Evictor} that should be used to evict elements from a window before emission.
 *
 * <p>Note: When using an evictor window performance will degrade significantly, since
 * pre-aggregation of window results cannot be used.
 */
@PublicEvolving
public WithWindow<T1, T2, KEY, W> evictor(Evictor<? super TaggedUnion<T1, T2>, ? super W> newEvictor) {
	return new WithWindow<>(input1, input2, keySelector1, keySelector2, keyType,
			windowAssigner, trigger, newEvictor);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:12,代码来源:JoinedStreams.java

示例6: evictor

import org.apache.flink.streaming.api.windowing.evictors.Evictor; //导入依赖的package包/类
/**
 * Sets the {@code Evictor} that should be used to evict elements from a window before
 * emission.
 *
 * <p>Note: When using an evictor window performance will degrade significantly, since
 * pre-aggregation of window results cannot be used.
 */
@PublicEvolving
public WithWindow<T1, T2, KEY, W> evictor(Evictor<? super TaggedUnion<T1, T2>, ? super W> newEvictor) {
	return new WithWindow<>(input1, input2, keySelector1, keySelector2, keyType,
			windowAssigner, trigger, newEvictor);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:13,代码来源:CoGroupedStreams.java


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