Java Code Examples for org.apache.flink.streaming.api.watermark.Watermark#MAX_WATERMARK

The following examples show how to use org.apache.flink.streaming.api.watermark.Watermark#MAX_WATERMARK . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TemporalProcessTimeJoinOperator.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void open() throws Exception {
	this.joinCondition = generatedJoinCondition.newInstance(getRuntimeContext().getUserCodeClassLoader());
	FunctionUtils.setFunctionRuntimeContext(joinCondition, getRuntimeContext());
	FunctionUtils.openFunction(joinCondition, new Configuration());

	ValueStateDescriptor<BaseRow> rightStateDesc = new ValueStateDescriptor<>("right", rightType);
	this.rightState = getRuntimeContext().getState(rightStateDesc);
	this.collector = new TimestampedCollector<>(output);
	this.outRow = new JoinedRow();
	// consider watermark from left stream only.
	super.processWatermark2(Watermark.MAX_WATERMARK);
}
 
Example 2
Source File: TemporalProcessTimeJoinOperator.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void open() throws Exception {
	this.joinCondition = generatedJoinCondition.newInstance(getRuntimeContext().getUserCodeClassLoader());
	FunctionUtils.setFunctionRuntimeContext(joinCondition, getRuntimeContext());
	FunctionUtils.openFunction(joinCondition, new Configuration());

	ValueStateDescriptor<RowData> rightStateDesc = new ValueStateDescriptor<>("right", rightType);
	this.rightState = getRuntimeContext().getState(rightStateDesc);
	this.collector = new TimestampedCollector<>(output);
	this.outRow = new JoinedRowData();
	// consider watermark from left stream only.
	super.processWatermark2(Watermark.MAX_WATERMARK);
}
 
Example 3
Source File: TaxiQuerySolution.java    From flink-training-exercises with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
public Watermark getCurrentWatermark() {
	return Watermark.MAX_WATERMARK;
}
 
Example 4
Source File: NearestTaxiWithCleanupSolution.java    From flink-training-exercises with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
public Watermark getCurrentWatermark() {
	return Watermark.MAX_WATERMARK;
}
 
Example 5
Source File: OngoingRidesSolution.java    From flink-training-exercises with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
public Watermark getCurrentWatermark() {
	return Watermark.MAX_WATERMARK;
}